-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
23 lines (18 loc) · 748 Bytes
/
.bashrc
File metadata and controls
23 lines (18 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
BASHD="$HOME/.bash.d"
[[ -d "$BASHD" ]] || return 1
# Source core files in .bash.d/ in specific order
for file in $BASHD/{functs,opts,env,secrets-env,colors,paths,aliases,secrets-aliases,cmds}; do
[ -r "$file.sh" ] && [ -f "$file.sh" ] && source "$file.sh"
done
# Source core dirs in .bash.d/ in a specific order
for file in $BASHD/{completions,prompt}/*.sh; do
[ -r "$file" ] && [ -f "$file" ] && source "$file"
done
#Source the host/ dir last
# if [[ -d "$BASHD/host" ]]; then
# for file in $BASHD/host/*; do
# [ -r "$file" ] && [ -f "$file" ] && source "$file"
# done
# fi
unset file
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*