From dff6d5ea31c49452ae77fb64a847ec0f4abef3a3 Mon Sep 17 00:00:00 2001 From: Stephen Parkinson Date: Fri, 20 Feb 2026 22:42:17 -0800 Subject: [PATCH] use correct zsh --- setup.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index af72c18..20ca1d2 100755 --- a/setup.sh +++ b/setup.sh @@ -45,9 +45,11 @@ ln -s ~/dotfiles/vim/vimrc ~/.vimrc mkdir -p ~/Developer -echo "Change shell to zsh? [y/n]" -read shell -if [ "$shell" = "y" ]; then - chsh -s /bin/zsh +if command -v chsh &>/dev/null && command -v zsh &>/dev/null; then + echo "Change shell to zsh? [y/n]" + read shell + if [ "$shell" = "y" ]; then + chsh -s "$(command -v zsh)" + fi fi exit