Zsh

Zsh (Z Shell) is a powerful shell that combines features from bash, ksh, and tcsh. Since macOS Catalina, it’s the default shell on Mac.

Key Features

  • Enhanced tab completion
  • Shared command history across sessions
  • Spelling correction
  • Powerful globbing patterns
  • Theming and plugin support via frameworks like Oh My Zsh

Configuration Files

FilePurpose
~/.zshrcMain configuration
~/.zprofileLogin shell config
~/.zshenvAlways sourced

Check Zsh Version

zsh --version
echo $ZSH_VERSION
  • Oh My Zsh - Community-driven framework with plugins and themes
  • Prezto - Lightweight configuration framework
  • Zinit - Flexible plugin manager

See Also