From f06d6797c5abc8aecb15015b32e98159ffec625c Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 12 Oct 2021 16:17:03 -0500 Subject: [PATCH] Update executable_dot_bashrc.tmpl --- executable_dot_bashrc.tmpl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/executable_dot_bashrc.tmpl b/executable_dot_bashrc.tmpl index 4533693..bc44116 100644 --- a/executable_dot_bashrc.tmpl +++ b/executable_dot_bashrc.tmpl @@ -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