fix setup zsh

This commit is contained in:
Tomas Mirchev 2025-02-24 19:31:02 +00:00
parent c54db52ec0
commit 7147d72ad7

View File

@ -18,8 +18,8 @@ else
fi fi
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) 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." echo "Zsh installation and setup complete. Please log out and log back in for changes to take effect."