Appendix D — Change Mac shell to bash

Mac Catalina changes the default shell program from Bash to zsh. While zsh is a great shell, we are using Bash in this class for consistency.

  1. Open a Terminal

  2. Copy or Type and run this command:

    chsh -s /bin/bash
  3. You will be asked to enter your computer password. YOU WON’T SEE KEYSTROKES AS YOU TYPE in your password. Just type it in anyway and hit Return. If you flub the password, you’ll have to enter the above command again.

  4. If you don’t get an error, close your terminal and reopen it and it should say “bash” at the top.

D.1 Alternative method

If for some reason that doesn’t work, there is this way, too:

  1. Choose Apple menu  > System Settings, 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.

Default to bash
  1. Click OK and close the System Preferences window.
  2. Close any Terminal windows you have open and restart them.