Zsh (the Z shell) is an interactive shell that's mostly compatible with Bash but adds a wealth of conveniences that make daily terminal life far more pleasant. It became the default shell on macOS, which catapulted it into mainstream use, and it's a favorite among developers who want power without giving up familiarity.

Its standout features are intelligent tab completion (it completes command flags, file paths, even Git branches), powerful globbing for matching files, and deep customization through plugins and themes—usually via frameworks like Oh My Zsh. Spelling correction, shared command history across sessions, and rich prompt customization round out the package.

bash
# in ~/.zshrc
setopt AUTO_CD            # type a dir name to cd into it
setopt CORRECT            # suggest fixes for typos
autoload -Uz compinit && compinit   # enable completion

Because it stays close to Bash syntax, the switch is nearly frictionless—you keep your scripts and habits while gaining a much smarter prompt.