Only change shell if it is not already zsh

This commit is contained in:
Raoul Snyman 2023-07-11 16:31:04 -07:00
parent aca79d47e0
commit cedfce5a8f

View File

@ -79,7 +79,9 @@ function setup_zsh() {
zsh -c 'setopt EXTENDED_GLOB; for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"; done'
cd $HOME
patch -p0 < $DIR/zsh/prezto.diff
chsh -s /bin/zsh
if [[ `getent passwd $USER | awk -F: '{print $NF}'` != "/bin/zsh" ]]; then
chsh -s /bin/zsh
fi
}
function setup_topydo() {