diff options
Diffstat (limited to 'bash/bashrc')
-rw-r--r-- | bash/bashrc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bash/bashrc b/bash/bashrc index 5b04f979..e719efee 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -106,6 +106,18 @@ if [[ $COMP_WORDBREAKS ]] ; then COMP_WORDBREAKS=${COMP_WORDBREAKS//:} fi +# If this wasn't a login shell, load in the POSIX shell functions +case $- in + *l*) ;; + *) + for shrc in "$HOME"/.shrc.d/*.sh ; do + [[ -e $shrc ]] || continue + source "$shrc" + done + unset -v shrc + ;; +esac + # Load any supplementary scripts for bashrc in "$HOME"/.bashrc.d/*.bash ; do [[ -e $bashrc ]] || continue |