From 2ccefd6f70847115452b575f94bb84455a8512c3 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 11 Nov 2019 10:12:23 +0000 Subject: [PATCH] bash: load system-specific bash file if present --- bashrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index a5ce52c..8bf86b3 100644 --- a/bashrc +++ b/bashrc @@ -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