Check if .shrc is actually loaded

This commit is contained in:
Anthony Rose 2022-09-10 23:14:51 +01:00
parent fb04b0d826
commit 65dd88967f
3 changed files with 11 additions and 0 deletions

View file

@ -19,3 +19,8 @@ bind 'set bell-style none'
bind 'set completion-ignore-case on'
bind 'set enable-bracketed-paste off'
export PS1="\[\033[01m\]\u@\h\\$\[\033[00m\] "
if [ -n $_acp_shrc ]
then
. "$HOME/.shrc"
fi

View file

@ -7,6 +7,7 @@ case "$-" in
return 1
;;
esac
_acp_shrc=YES
if [ -d /var/acp ]
then

View file

@ -21,3 +21,8 @@ bindkey "^[OA" history-beginning-search-backward
bindkey "^[OB" history-beginning-search-forward
export PS1="%B%n@%m%#%b "
if [ -n $_acp_shrc ]
then
. "$HOME/.shrc"
fi