Update executable_dot_bashrc.tmpl

master
parent 1368bf11a7
commit f06d6797c5

@ -5,6 +5,16 @@ if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
{{ if (eq .chezmoi.osRelease.id "centos") }}
{{ if (eq .chezmoi.osRelease.versionID "7") }}
# Switch to zsh if interactive, and we haven't been told not to
if [[ ($- == *i*) && ($SSH_TTY) && (-z $NO_ZSH) ]]; then
export SHELL=$(which zsh)
exec $SHELL -l
fi
{{ end }}
{{ end }}
if [ -f "$HOME/.modules" ]; then
source $HOME/.modules
fi

Loading…
Cancel
Save