From 7147d72ad7070c86e567aba72495d4f07d7e0eea Mon Sep 17 00:00:00 2001 From: Tomas Mirchev Date: Mon, 24 Feb 2025 19:31:02 +0000 Subject: [PATCH] fix setup zsh --- scripts/linux-setup_zsh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/linux-setup_zsh.sh b/scripts/linux-setup_zsh.sh index 9dd3182..45a5c3f 100755 --- a/scripts/linux-setup_zsh.sh +++ b/scripts/linux-setup_zsh.sh @@ -18,8 +18,8 @@ else fi fi -echo "Changing default shell to Zsh for user ${SUDO_USER:-$USER}..." +echo "Changing default shell to Zsh for user $(whoami)..." zsh_path=$(command -v zsh) -sudo chsh -s "$zsh_path" "${SUDO_USER:-$USER}" +sudo chsh -s "$zsh_path" "$(whoami)" echo "Zsh installation and setup complete. Please log out and log back in for changes to take effect."