Created
May 27, 2020 02:53
-
-
Save cxy1997/041b30e8e2f9f7c228f146232c0473fc to your computer and use it in GitHub Desktop.
Change Default Shell Locally
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "$SHELL" != "/usr/bin/zsh" ] | |
then | |
export SHELL="/usr/bin/zsh" | |
exec /usr/bin/zsh -l # -l: login shell again | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment