Terminal

When did MacOS Switch to Zsh Terminal?

Catalina MacOS runs .zshrc rather than .bash_profile and .bashrc by default when launching a terminal.

Zsh vs Bash Terminal on Macs

Bash

Bash (Bourne Again SHell) has been the default shell for most Linux distributions and Appleā€™s MacOS until Catalina. It is a command processor that typically runs in a text window where the user types commands that cause actions. Bash can also read and execute commands from a file, called a script.

Key Features of Bash:

Zsh

Zsh (Z Shell) is a popular shell that combines features of Bash and other shells like tcsh and ksh. It is highly interactive and customizable. With MacOS Catalina and later, Zsh is the default shell.

Key Features of Zsh:

Switching Between Bash and Zsh

You can switch your shell in the terminal using the chsh command followed by -s (specify shell) and the path to the shell executable. For example, to switch to Bash, you would use chsh -s /bin/bash.

Please note that the steps may vary slightly depending on the version of macOS you are using.

Journal