bash: load system-specific bash file if present

This commit is contained in:
2019-11-11 10:12:23 +00:00
parent e5035340ec
commit 2ccefd6f70

10
bashrc
View File

@@ -125,6 +125,8 @@ fi
export PATH=$HOME/bin:$PATH
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# Load any supplementary scripts
if [ -d "$HOME"/.bashrc.d ] ; then
for config in "$HOME"/.bashrc.d/*.bash ; do
@@ -132,5 +134,9 @@ if [ -d "$HOME"/.bashrc.d ] ; then
done
unset -v config
fi
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
if [ -f ${HOME}/.bashrc.d/local/${HOSTNAME}.bash ] ; then
echo "hello ma."
source ${HOME}/.bashrc.d/local/${HOSTNAME}.bash
else
echo "No system-specific bash."
fi