diff --git a/initialize.sh b/initialize.sh index cc16b41..9438b77 100644 --- a/initialize.sh +++ b/initialize.sh @@ -37,7 +37,7 @@ install_zsh() { # Set zsh as the default shell if [ "$(uname)" == "Darwin" ]; then - sudo dscl . -create /Users/$(whoami) UserShell /usr/local/bin/zsh + chsh -s $(which zsh) elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then chsh -s $(which zsh) else