Doing so is easy to do—you can change it just for the current sessions or change the default login shell. If you’re ready to swap bash for zsh, or zsh for dash, then here’s how to change the default Terminal shell on Mac.
What is a Shell?
A shell is a program that helps you interact with your computer’s operating system. The shell interprets the commands that you type in a Terminal window. Although Mac computers have default shells, you can choose to use a different shell. For Mac computers, the default shell was always bash (Bourne-Again shell) up until the release of macOS Catalina, when it was replaced with zsh as the default. However, zsh is only used for new user accounts. If you upgraded your Mac or transferred to your new Mac from a backup, you may still be using bash, even if you are running macOS Catalina or later. Each shell has unique features, and some may have useful features that are missing from your current shell. For example, zsh provides autocompletion and autocorrection features that are not available in bash.
How To Tell Which Shell Your Mac is Using
If you want to know which shell you are using on your Mac, you can do so in the Terminal window. There are a couple of ways to do so—one method is simple, but it doesn’t work for every shell out there. The other is a bit of a fudge, but should work no matter what shell you’re using. To tell which shell your Mac is using:
How to Change Your Default Shell in System Settings
You can change the default shell used by your Mac through the System Settings menu. This allows you to choose from a selection of shell options. To change your default shell in System Settings:
How to Change Your Default Shell in Terminal
If you want to change the default shell, you can do so directly in Terminal. Enter one command, and the default shell will be changed to the shell of your choosing. You’ll need to know the path of the shell that you want to change to; the list can be found through the system settings, as explained in the section above. To change your default shell in Terminal: If you use one of the methods above to see what shell you are running, you will notice that the shell hasn’t changed. This is because your change won’t take effect until you close and reopen the Terminal. Once you do so, you should find that Terminal has switched to your shell of choice.
How to Change the Shell Without Changing the Default
What if you only want to use a specific shell for your current Terminal session, but want to keep the default shell as it is? Rather than changing your default shell back and forth, you can change the shell that Terminal is using in the Terminal settings. To change the shell without changing the default:
Managing Your Terminal Settings on macOS
Learning how to change the default Terminal shell on Mac allows you to use your favorite shell rather than having to stick with the default. There are plenty of other ways that you can set up your Mac to be more to your liking. If you’re constantly using two apps at once, you can learn how to use split screen on Mac. If you need to work with more than two apps, you can learn how to use Stage Manager on Mac to make multitasking easier. And if you want to get the most out of your screen real estate, you can learn how to change screen resolution on Mac. Comment Name * Email *
Δ Save my name and email and send me emails as new comments are made to this post.