1
0
Fork 0
mirror of https://github.com/MillironX/dotfiles.git synced 2024-11-22 13:29:56 +00:00

Update executable_dot_bashrc.tmpl

This commit is contained in:
Thomas A. Christensen II 2021-10-12 16:17:03 -05:00
parent 1368bf11a7
commit f06d6797c5

View file

@ -5,6 +5,16 @@ if [ -f /etc/bashrc ]; then
. /etc/bashrc . /etc/bashrc
fi 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 if [ -f "$HOME/.modules" ]; then
source $HOME/.modules source $HOME/.modules
fi fi