Set maxOS Catalina Default Shell to Bash

A few days ago i received a company Macbook and while in the process of setting it up i noted that the default shell was set to zsh which is the recommended one from Apple these days.

My personal preference has been and still is bash so this will be a quick blog post about how to change the default shell in macOS Catalina (version 10.15.2) which is what i’m using today.

There are two easy ways of doing this:

  1. The UI way
    1. Go to System Preferences and click Users & Groups
    2. Make sure the lock is unlocked, if not unlock it 🙂
    3. Hold down the control / ctrl key and click the User Name – Then you’ll get the Advanced Options which you click
    4. Go to Login Shell, use the drop down to select the shell you wanna use, in my case /bin/bash
  2. Command line way
    1. Open your terminal of choice and run:
      1. chsh -s /bin/bash – provide the user password

You can use chsh -s path_to_your_preferred_shell to change the shell again if needed.

When you start your terminal now there will be a message telling you to the zsh is now the default shell for macOS.

To get rid of this you can include the following conifguration into your .bash_profile file:


Now when starting your terminal of choice it will look the same as before

2 pings

Comments have been disabled.