2. zsh

zsh is the default shell on macOS Monterey.

Install “Oh My Zsh”:

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Check the version:

$ omz version
master (69a6359)

Edit startup scripts ~/.zshrc:

 # load a random theme each time Oh My Zsh is loaded, in which case,
 # to know which specific one was loaded, run: echo $RANDOM_THEME
 # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
-ZSH_THEME="robbyrussell"
+ZSH_THEME="gentoo"
 
 # Set list of themes to pick from when loading at random
 # Setting this variable when ZSH_THEME=random will cause zsh to load

Note

The last lines are added during installation of nvm, see “Using nvm”. Do not edit it mannully.

Mannully update:

$ omz update