mirror of
https://github.com/MillironX/dotfiles.git
synced 2024-11-21 21:26:04 +00:00
Update executable_dot_bashrc.tmpl
This commit is contained in:
parent
1368bf11a7
commit
f06d6797c5
1 changed files with 10 additions and 0 deletions
|
@ -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…
Reference in a new issue