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:
parent
a45991112a
commit
38457c4451
2 changed files with 5 additions and 1 deletions
|
@ -6,5 +6,7 @@ fi
|
|||
|
||||
cat /dev/shm/cloudcatcher-banner.txt;
|
||||
|
||||
if [ "${sbrl_bashrc_executed}" = "" ]; then
|
||||
source $HOME/.bashrc;
|
||||
fi
|
||||
|
||||
|
|
2
.bashrc
2
.bashrc
|
@ -8,6 +8,8 @@ case $- in
|
|||
*) return;;
|
||||
esac
|
||||
|
||||
sbrl_bashrc_executed=true;
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL=ignoreboth
|
||||
|
|
Loading…
Reference in a new issue