Zsh is a command interpreter and scripting shell designed for interactive terminal use and automation. It combines features associated with Bash, KornShell and tcsh with its own facilities for command-line editing, completion, pattern matching and configuration.
A distinguishing characteristic of Zsh is its programmable completion system. Rather than simply completing filenames, the shell can offer context-sensitive suggestions for commands, options, arguments and other values. Completion behaviour can be adjusted through styles, functions and matching rules, allowing users to tailor the interface to frequently used applications.
Zsh also provides extensive command history management. Users can search earlier commands, share history between sessions and configure how duplicate or sensitive entries are handled. Its command-line editor supports Emacs and Vi editing modes, with configurable keybindings and reusable editing widgets.
For scripting, Zsh supports functions, arrays, arithmetic expressions, advanced parameter expansion and powerful filename matching. Its syntax differs from POSIX shell in several default behaviours, although compatibility modes are available.
The shell’s configuration system supports autoloaded functions and modules, making it suitable for both relatively simple setups and highly customised environments.
This is free and open source software.
Key Features
- Provides interactive command-line editing with Emacs and Vi modes.
- Supports programmable, context-sensitive command completion.
- Completes commands, options, filenames, directories and arguments.
- Offers spelling correction for commands and filenames.
- Maintains searchable command history.
- Supports sharing command history between shell sessions.
- Provides advanced filename globbing and recursive pattern matching.
- Supports indexed and associative arrays.
- Offers extensive parameter expansion and string manipulation.
- Provides shell functions with autoloading.
- Supports aliases, including global and suffix aliases.
- Offers arithmetic evaluation and conditional expressions.
- Provides job control and process substitution.
- Supports configurable prompts and right-side prompt information.
- Extends functionality through loadable modules.
- Provides compatibility modes for other shell syntaxes.
- Cross-platform support – runs on Linux and macOS.
Website: github.com/zsh-users/zsh
Support:
Developer: Paul Falstad and Zsh contributors
License: MIT License
zsh is written in C. Learn C with our recommended free books and free tutorials.
Related Software
| Shells | |
|---|---|
| zsh | Advanced and programmable command interpreter |
| Nushell | Adopts the Unix philosophy of shells where pipes connect command together |
| fish | Smart and user-friendly command line shell |
| Xonsh | Python-powered, cross-platform shell language and command prompt |
| bash | sh-compatible command language interpreter |
| Murex | Intuitive, typed and content aware shell |
| PowerShell | Cross-platform automation and configuration framework |
| Elvsh | Expressive programming language and a versatile interactive shell |
| Oils | Billed as an upgrade to bash. Written in Python. |
| DASH | POSIX-compliant implementation of sh that aims to be as small as possible |
| sh | Shell parser, formatter, and interpreter |
| tcsh | C shell with file name completion and command line editing |
| mksh | MirBSD Korn shell |
| ksh | Unix shell which was developed by David Korn at Bell Labs |
| brush | POSIX- and bash compatible shell |
| Rash | Language, library, and shell REPL for Racket. |
| ion | Modern system shell that features a simple, yet powerful, syntax |
| Cicada | Bash-like command environment with scripting and job control |
| Yash | Yet another shell |
| oksh | Portable OpenBSD ks |
| es | Extensible shell with higher-order functio |
| dune | A shell by the beach |
| cosh | Concatenative command-line she |
| Marcel | Modern command environment combining Python with Unix pipelines |
| Hilbish | Highly extensible command environment configured with Lua |
| gsh | POSIX-compatible generative shell |
| arsh | Statically typed scripting language with shell-like features |
| Sushi shell | Bash clone shell implemented in Rust |
| loksh | Linux port of OpenBSD's Korn-compatible command interpreter |
| fortsh | Shell written in Fortran |
| hsh | Slightly different take on your shell |
| ReShell | Modern shell |
| rash | Rudimentary shell |
| Dax | Custom Unix shell implementation |
| cjsh | POSIX-oriented command environment with modern interactive features |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.