Skip to content

Commit

Permalink
fix(script): only change shell when it's needed
Browse files Browse the repository at this point in the history
  • Loading branch information
tagoro9 committed Apr 26, 2021
1 parent b4a14a1 commit 7960812
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then
}

# Set zsh as default terminal
eval $(chsh -s /usr/local/bin/zsh)
if [ "$SHELL" != "/usr/local/bin/zsh"]; then
eval $(chsh -s /usr/local/bin/zsh)
fi
fi

# Install oh-my-zsh if not there
Expand Down

0 comments on commit 7960812

Please sign in to comment.