Zsh (Z shell) is a powerful Unix shell and command-line interpreter that serves as an interactive login shell and script execution environment, created by Paul Falstad in 1990 and now the default shell on macOS, Kali Linux, and several other operating systems. It solves the limitations of traditional shells like Bash by combining the best features of Bash, ksh, and tcsh with extensive enhancements for interactive use, programmable completion, and customization. Zsh has become the preferred shell for developers who want a more productive, feature-rich terminal experience with advanced completion, globbing, and prompt customization capabilities.
Zsh differentiates itself through its sophisticated tab completion system that can complete commands, file paths, Git branches, SSH hosts, and package names with context-aware suggestions, along with extended file globbing patterns, powerful variable and array handling, and a rich theme engine for customizing prompts. The shell supports loadable modules providing TCP and Unix socket controls, an FTP client, and extended math functions, as well as features like directory auto-cd without the cd command, shared command history across sessions, and spelling correction for mistyped commands. The Oh My Zsh framework, with over 300 plugins and 150 themes, has created a massive ecosystem around Zsh customization.
Zsh targets developers, system administrators, and power users who spend significant time in the terminal and want a shell that maximizes productivity through intelligent completion, customization, and scripting capabilities. It is the standard shell for macOS users since Catalina and is popular among Linux developers who value its interactive features over Bash's more conservative defaults. Zsh integrates with the broader terminal tool ecosystem including tmux, neovim, and modern CLI tools, and the Oh My Zsh framework provides instant productivity boosts for developers who want sensible defaults, Git integration, and plugin-based extensibility without manual configuration.