"Use zsh as the default shell on your Mac"

`` By default, your Mac uses either zsh or bash as the command-line interpreter for the login shell and interactive shell:

How to change your default shell

Whether your user account is configured to use zsh (recommended), bash, or another shell, you can change the default shell from Users & Groups preferences or the command line.

From Users & Groups preferences

  1. Choose Apple menu  > System Preferences, then click Users & Groups.
  2. Click the lock , then enter your account name and password.
  3. Control-click your user name in the list of users on the left, then choose Advanced Options.
  4. Choose a shell from the ”Login shell” menu, then click OK to save the changes.

From the command line

In Terminal, enter $ chsh -s path, where path is one of the shell paths listed in /etc/shells, such as /bin/zsh, /bin/bash, /bin/csh, /bin/dash, /bin/ksh, /bin/sh, or /bin/tcsh.

How to use a different shell without changing the default

If you don't want Terminal to use the default login shell in new Terminal windows and tabs:

  1. Open Terminal, then choose Terminal > Preferences.
  2. From the General pane, select ”Command (complete path).”
  3. In the field provided, enter one of the shell paths listed in /etc/shells, such as /bin/zsh, /bin/bash, /bin/csh, /bin/dash, /bin/ksh, /bin/sh, or /bin/tcsh. If you invoke the bash shell while macOS Catalina is configured to use a different shell, you'll see a message that the default interactive shell is now zsh. To silence this warning, you can add this command to ~/.bash_profile or ~/.profile: export BASH_SILENCE_DEPRECATION_WARNING=1

    How to switch to a zsh profile and prompt

    If you're using a bash profile, such as to set environment variables, aliases, or path variables, you should switch to using a zsh equivalent. For example:

    How to test your shell scripts

    To test script compatibility with Bourne-compatible shells in macOS Catalina, you can change /var/select/sh to /bin/bash, /bin/dash, or /bin/zsh. If you change /var/select/sh to a shell other than bash, be aware that scripts that make use of bashisms may not work properly. zsh can be made to emulate sh by executing the command zsh --emulate sh. -"Use zsh as the default shell on your Mac"