macOS
brew install zshlocal Homebrew formula metadata
sudo port install zshMacPorts ports tree · shells/zsh/Portfile · source: api.github.com
brew
UNIX shell (command interpreter). Version 5.9.1 via Homebrew; verified 2026-06-26.
install
brew install zshlocal Homebrew formula metadata
sudo port install zshMacPorts ports tree · shells/zsh/Portfile · source: api.github.com
sudo apk add android-tools-zsh-completionAlpine Linux edge package indexes · android-tools-zsh-completion · source: dl-cdn.alpinelinux.org
sudo apt install zshDebian stable package indexes · zsh · source: deb.debian.org
sudo dnf install zshFedora Rawhide package metadata · zsh · source: dl.fedoraproject.org
nix profile install nixpkgs#zshnixpkgs package indexes · pkgs/by-name/zs/zsh/package.nix · source: api.github.com
sudo pacman -S zshArch Linux sync databases · zsh · source: geo.mirror.pkgbuild.com
sudo zypper install zshopenSUSE Tumbleweed package metadata · zsh · source: download.opensuse.org
overview
UNIX shell (command interpreter)
history
Zsh is one of the major Unix command interpreters: Bourne-like enough for daily shell work, but famous for interactive features such as programmable completion, spelling correction, glob qualifiers, prompt expansion, modules, line editing, and extensive startup-file control.
Zsh was originally written by Paul Falstad while he was a Princeton student, and the official FAQ preserves the name origin as 'Z shell' after Yale professor Zhong Shao. The project started around 1990 and entered the public Unix shell ecosystem in the early 1990s as a more featureful interactive shell than sh, csh, and ksh users typically had by default.
The shell matured through the 1990s with mailing-list-driven development, a large manual, and a compatibility stance that mixed Bourne-shell scripting with deliberately non-minimal interactive features. The official documentation still reflects that breadth: shell grammar, parameters, expansion, completion, modules, ZLE widgets, TCP helpers, calendar functions, and many option switches are documented as first-class parts of the system.
The 4.x series established zsh as a stable power-user shell, while the 5.x series modernized a codebase already common on Unix-like systems. The official news page records zsh 5.0.0 in 2012 and zsh 5.9 in 2022, showing a project that is conservative in release cadence but still maintained.
Apple's macOS Catalina changed zsh's public profile. In 2019 Apple documented that the default interactive shell changed from bash to zsh, turning a shell long associated with Unix enthusiasts into the out-of-box shell for new macOS user accounts.
Before the macOS switch, zsh adoption was strongest among Unix developers, sysadmins, and shell customizers who valued completion and prompt control. Frameworks such as Oh My Zsh later made that culture visible by collecting themes, plugins, and conventions around `.zshrc` customization.
After macOS Catalina, zsh became a default shell for a large population of developers using Macs. That did not make every user a zsh power user, but it changed packaging expectations: plugins, completions, prompt themes, history tools, and shell integrations increasingly treated zsh as a baseline target next to bash.
Distribution packaging is broad. The input package facts list zsh across Homebrew, Debian, Ubuntu, Fedora, Arch, openSUSE, MacPorts, Nix, and Alpine-related packages, reflecting its role as infrastructure rather than a niche optional tool.
Interactive users configure zsh through its startup-file sequence: `.zshenv`, `.zprofile`, `.zshrc`, `.zlogin`, and `.zlogout`. `.zshrc` is the common home for aliases, prompt setup, completion initialization, key bindings, plugin loading, and history behavior.
Developers use zsh as a login shell, an interactive command interpreter, and sometimes a scripting language when zsh-specific expansion, arrays, globbing, or modules are useful. Its completion system is a major practical draw: package managers and CLIs often ship zsh completion definitions because zsh users expect rich argument completion.
The shell is also the substrate for a large plugin ecosystem: prompt frameworks, autosuggestions, syntax highlighting, fuzzy history, directory jumping, and language-toolchain helpers are commonly loaded from `.zshrc`.
zsh is package-nerd royalty because it is both a package and a platform for other packages. A package database can list zsh as a command interpreter, but its real ecosystem includes completions, plugins, prompt themes, framework packages, and tools that exist only because zsh's extension points are useful.
It is also a clean example of how defaults change package importance. zsh was already old and respected before macOS Catalina; Apple's default-shell switch made it newly central to developer workstations, Homebrew instructions, dotfile repos, and shell-plugin packaging.
For curation, zsh should be connected not just to shells such as bash, ksh, fish, and tcsh, but also to package-manager completion systems and interactive terminal UX tools.
security posture
doc example: shell runtime.
yellow risk · high confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.zshenv~/.zprofile~/.zshrc~/.zlogin~/.zlogoutCredential-bearing paths to review before unattended agent runs.
~/.zshenv~/.zprofile~/.zshrc~/.zlogin~/.zlogoutexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
zsh | cli | global executable | |
zsh-5.9 | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:zsh |
|---|---|
| Version | 5.9.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/zsh |
| Homepage | https://www.zsh.org/ |
| Repository | https://sourceforge.net/p/zsh/code |
| Upstream docs | https://zsh.sourceforge.io/Doc |
| License | MIT-Modern-Variant AND GPL-2.0-only AND GPL-2.0-or-later AND ISC |
| Source archive | https://downloads.sourceforge.net/project/zsh/zsh/5.9.1/zsh-5.9.1.tar.xz |
| Last updated | 2026-06-26T12:13:30-04:00 |
| Pulse | updated |
| Dependencies | ncurses, pcre2 |
| Build dependencies | texinfo |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | zsh |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
zsh 5.9-8+b23
shell with lots of features
sudo apt install zshzsh-common 5.9-8
architecture independent files for Zsh
sudo apt install zsh-commonzsh-dev 5.9-8+b23
shell with lots of features (development files)
sudo apt install zsh-devzsh-doc 5.9-8
zsh documentation - info/HTML format
sudo apt install zsh-doczsh-static 5.9-8+b23
shell with lots of features (static link)
sudo apt install zsh-staticzsh
nix profile install nixpkgs#zshzsh 5.9-6ubuntu2
shell with lots of features
sudo apt install zshzsh-common 5.9-6ubuntu2
architecture independent files for Zsh
sudo apt install zsh-commonzsh-dev 5.9-6ubuntu2
shell with lots of features (development files)
sudo apt install zsh-devzsh-doc 5.9-6ubuntu2
zsh documentation - info/HTML format
sudo apt install zsh-doczsh-static 5.9-6ubuntu2
shell with lots of features (static link)
sudo apt install zsh-staticandroid-tools-zsh-completion 5.9-r7
Zsh completions for android-tools
sudo apk add android-tools-zsh-completionbzr-zsh-completion 5.9-r7
Zsh completions for bzr
sudo apk add bzr-zsh-completioncomposer-zsh-completion 5.9-r7
Zsh completions for composer
sudo apk add composer-zsh-completioncvs-zsh-completion 5.9-r7
Zsh completions for cvs
sudo apk add cvs-zsh-completiongcc-zsh-completion 5.9-r7
Zsh completions for gcc
sudo apk add gcc-zsh-completionsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.