-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
45 lines (36 loc) · 1.17 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
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
# Allow local customizations in the ~/.shell_local_before file
if [ -f ~/.shell_local_before ]; then
source ~/.shell_local_before
fi
# Allow local customizations in the ~/.bashrc_local_before file
if [ -f ~/.bashrc_local_before ]; then
source ~/.bashrc_local_before
fi
# Load all files from .shell/bashrc.d directory
if [ -d $HOME/.shellrc/common/bashrc.d ]; then
for file in $HOME/.shellrc/common/bashrc.d/*.bash; do
source $file
done
fi
# Load all files from .shell/rc.d directory
if [ -d $HOME/.shellrc/common/rc.d ]; then
for file in $HOME/.shellrc/common/rc.d/*.sh; do
source $file
done
fi
# Allow local customizations in the ~/.shell_local_after file
if [ -f ~/.shell_local_after ]; then
source ~/.shell_local_after
fi
# Allow local customizations in the ~/.bashrc_local_after file
if [ -f ~/.bashrc_local_after ]; then
source ~/.bashrc_local_after
fi
[ -f ~/.fzf.bash ] && source ~/.fzf.bash