-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbashrc
46 lines (39 loc) · 1.28 KB
/
bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- shell-script -*-
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
if [[ -f ~/.localrc.pre ]]; then
source ~/.localrc.pre
fi
# Source global definitions
if [[ -f /etc/bashrc ]]; then
. /etc/bashrc
fi
# Declare dotfiles directory
export DOTFILES_DIR=${DOTFILES_DIR:-"$HOME"/.dotfiles}
if [[ ! -d "$DOTFILES_DIR" ]]; then
echo "Error: can't find $DOTFILES_DIR directory" >&2
return 1
fi
source "$DOTFILES_DIR"/bash/paths
source "$DOTFILES_DIR"/bash/config
source "$DOTFILES_DIR"/bash/completions
source "$DOTFILES_DIR"/bash/aliases
# use .localrc for settings specific to one system
if [[ -f ~/.localrc ]]; then
source ~/.localrc
fi
## Adapting PATH environment variable for use with perlbrew,
## load RVM into a shell session *as a function*, and add completion
#if [[ -s "$HOME/perl5/perlbrew/etc/bashrc" ]]; then
# source "$HOME/perl5/perlbrew/etc/bashrc"
# [[ -r "$PERLBREW_ROOT"/etc/perlbrew-completion.bash ]] && \
# . "$PERLBREW_ROOT"/etc/perlbrew-completion.bash
#fi
#
## Adapting PATH environment variable for use with RVM,
## load RVM into a shell session *as a function*, and
## add completion
#if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
# source "$HOME/.rvm/scripts/rvm"
# [[ -r "$rvm_path"/scripts/completion ]] && . "$rvm_path"/scripts/completion
#fi