aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home/.bash_profile8
-rw-r--r--home/.bashrc8
2 files changed, 12 insertions, 4 deletions
diff --git a/home/.bash_profile b/home/.bash_profile
index b12cc06..e10efd5 100644
--- a/home/.bash_profile
+++ b/home/.bash_profile
@@ -8,13 +8,17 @@
8# It loads each .bashrc.X file if it exists. 8# It loads each .bashrc.X file if it exists.
9 9
10 10
11# If .bashrc exists, use it 11########################################################################
12## .bashrc (core)
13########################################################################
12if [[ $- == *i* && -f ~/.bashrc ]]; then 14if [[ $- == *i* && -f ~/.bashrc ]]; then
13 . ~/.bashrc 15 . ~/.bashrc
14fi 16fi
15 17
16 18
17# If .bashrc.personal exists, use it. 19########################################################################
20## .bashrc.personal
21########################################################################
18if [[ $- == *i* && -f ~/.bashrc.personal ]]; then 22if [[ $- == *i* && -f ~/.bashrc.personal ]]; then
19 . ~/.bashrc.personal 23 . ~/.bashrc.personal
20fi 24fi
diff --git a/home/.bashrc b/home/.bashrc
index 5d0b391..1aad5fe 100644
--- a/home/.bashrc
+++ b/home/.bashrc
@@ -6,16 +6,20 @@
6# 6#
7# This is the core Bash configuration for all TGWIL accounts on all 7# This is the core Bash configuration for all TGWIL accounts on all
8# systems. It contains only those configurations which are applicable 8# systems. It contains only those configurations which are applicable
9# to (almost ) every situation. Situational configurations should go 9# to (almost) every situation. Situational configurations should go
10# in their respective situational repositories. 10# in their respective situational repositories.
11 11
12 12
13# Test for interactive shell 13########################################################################
14## Test for interactive shell
15########################################################################
14if [[ $- != *i* ]]; then 16if [[ $- != *i* ]]; then
15 return 17 return
16fi 18fi
17 19
18 20
21########################################################################
19## Bash completion 22## Bash completion
23########################################################################
20[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] \ 24[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] \
21 && source /usr/local/share/bash-completion/bash_completion.sh 25 && source /usr/local/share/bash-completion/bash_completion.sh