From f05c9f5b5573bbdf398fa54a828c1092c30cd093 Mon Sep 17 00:00:00 2001 From: yage Date: Thu, 18 Aug 2022 20:41:14 -0600 Subject: [PATCH] okagain --- setup/config.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/config.zsh b/setup/config.zsh index 80c729f..6f57591 100644 --- a/setup/config.zsh +++ b/setup/config.zsh @@ -21,6 +21,8 @@ CONFIG__SET_DEFAULT_SHELL() { local DEFAULT_SHELL=$(awk -F: -v user="$USER" '$1 == user {print $NF}' /etc/passwd) [[ $DEFAULT_SHELL =~ zsh ]] && return 0 + [ $FORCE_ROOT ] && return 0 + __STATUS 'setting zsh as default shell' sudo chsh -s $(which zsh) $(whoami) 2>&1 \ && __SUCCESS "set zsh as default shell for '$USER'" \