To change the default shell to bash on macOS Ventura or Monterey, you can use the chsh command. This command allows you to change the login shell for a user.
- Open the terminal by searching for “terminal” in Spotlight or by using the command + spacebar shortcut.
- Type the following command and press enter:
chsh -s /bin/bash
This command changes the default shell to /bin/bash for the current user.
- Verify the change by running the following command:
echo $SHELL
This should return “/bin/bash” if the change was successful.
Note: You may need to log out and log back in for the changes to take effect.