From c4f055270a879daf64bed76a19977f0881229f11 Mon Sep 17 00:00:00 2001 From: mingzailao Date: Fri, 29 Mar 2024 15:10:54 +0800 Subject: [PATCH] no message --- initialize.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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