

Then completely exit your shell program using Command-Q and relaunch it. You’ll almost certainly be prompted to type your system password at this point, which you should do. (In rare cases, $SHELL may differ from the current shell, but the procedure below will still correctly change from one shell to another.) To change to Zsh, simply follow Apple’s suggestion from Listing 1 and run chsh with the -s (“newshell”) option: $ chsh -s /bin/zsh This prints out the $SHELL environment variable, which in most cases prints out the value of the current shell-in this case, Bash. The first step is to confirm the identity of your current shell program using the echo command (as covered in Learn Enough Command Line): $ echo $SHELL Note that this procedure is entirely reversible (as described below), so there is no need to be concerned about damaging your system. The main technique is to use the chsh program, which stands for “change shell”.
#Shell program for mac how to#
This is a quick mini-tutorial on how to change your shell from Bash to Zsh (and vice versa). Throughout the rest of this post, we’ll take a look at the exact changes needed to make each Learn Enough tutorial compatible with Zsh instead of Bash. Thus, the differences as far as the Learn Enough tutorials are concerned aren’t particularly big.
/StartupSounds-5702d8c83df78c7d9e731db6-5c65f2db46e0fb000178c0ee.jpg)
The good news is that Z shell is not all that different from Bash (and indeed in large part is based on it). Or you can just start following any of the tutorials as written-as soon as a shell-related issue does come up, there’s a note in the text and a link to this post. If you want to follow the Learn Enough tutorials, that means you should either switch to Bash, as shown in Box 1 (recommended), or refer to this post every time a shell-related issue comes up. Now, I got the alert because I was already running Bash-if you got a Mac after Catalina came out, you’re probably running Z shell already, and won’t see the alert from Listing 1. If you’d asked me to list the top 1000 changes that might affect the Learn Enough tutorials, “Apple changes the default shell for macOS” would not have been on it.
#Shell program for mac update#
To update your account to use zsh, please run `chsh -s /bin/zsh`. The default interactive shell is now zsh.
