1
0
Fork 0
mirror of https://github.com/sbrl/bin.git synced 2018-01-10 21:33:46 +00:00

Conditionally execute .bashrc only if it hasn't been done so already

This commit is contained in:
Starbeamrainbowlabs 2018-01-06 22:52:40 +00:00
parent a45991112a
commit 38457c4451
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 5 additions and 1 deletions

View file

@ -6,5 +6,7 @@ fi
cat /dev/shm/cloudcatcher-banner.txt; cat /dev/shm/cloudcatcher-banner.txt;
if [ "${sbrl_bashrc_executed}" = "" ]; then
source $HOME/.bashrc; source $HOME/.bashrc;
fi

View file

@ -8,6 +8,8 @@ case $- in
*) return;; *) return;;
esac esac
sbrl_bashrc_executed=true;
# don't put duplicate lines or lines starting with space in the history. # don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options # See bash(1) for more options
HISTCONTROL=ignoreboth HISTCONTROL=ignoreboth