bash: load system-specific bash file if present
This commit is contained in:
10
bashrc
10
bashrc
@@ -125,6 +125,8 @@ fi
|
|||||||
|
|
||||||
export PATH=$HOME/bin:$PATH
|
export PATH=$HOME/bin:$PATH
|
||||||
|
|
||||||
|
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
||||||
|
|
||||||
# Load any supplementary scripts
|
# Load any supplementary scripts
|
||||||
if [ -d "$HOME"/.bashrc.d ] ; then
|
if [ -d "$HOME"/.bashrc.d ] ; then
|
||||||
for config in "$HOME"/.bashrc.d/*.bash ; do
|
for config in "$HOME"/.bashrc.d/*.bash ; do
|
||||||
@@ -132,5 +134,9 @@ if [ -d "$HOME"/.bashrc.d ] ; then
|
|||||||
done
|
done
|
||||||
unset -v config
|
unset -v config
|
||||||
fi
|
fi
|
||||||
|
if [ -f ${HOME}/.bashrc.d/local/${HOSTNAME}.bash ] ; then
|
||||||
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
echo "hello ma."
|
||||||
|
source ${HOME}/.bashrc.d/local/${HOSTNAME}.bash
|
||||||
|
else
|
||||||
|
echo "No system-specific bash."
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user