Automic VaultAutomic Vault

brew

Install zsh with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

UNIX shell (command interpreter). Version 5.9.1 via Homebrew; verified 2026-06-26.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install zsh

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install zsh

MacPorts ports tree · shells/zsh/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add android-tools-zsh-completion

Alpine Linux edge package indexes · android-tools-zsh-completion · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install zsh

Debian stable package indexes · zsh · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install zsh

Fedora Rawhide package metadata · zsh · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#zsh

nixpkgs package indexes · pkgs/by-name/zs/zsh/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S zsh

Arch Linux sync databases · zsh · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install zsh

openSUSE Tumbleweed package metadata · zsh · source: download.opensuse.org

overview

Package summary

UNIX shell (command interpreter)

Commands and aliases

  • zsh
  • zsh-5.9

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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`.

Why package nerds care

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.

Timeline

  • 1990: Paul Falstad begins the shell that becomes zsh.
  • 1990s: zsh develops as a feature-rich Bourne-style Unix shell with programmable completion and ZLE editing.
  • 2009: Oh My Zsh is created, helping popularize plugin-and-theme based zsh customization.
  • 2012-07-24: zsh 5.0.0 is released, according to the official zsh news archive.
  • 2019-10-07: macOS Catalina is released, and Apple documents zsh as the default shell for new user accounts.
  • 2022-05-14: zsh 5.9 is released, according to the official zsh news archive.

Related projects

  • Related projects include bash, ksh, tcsh, fish, Oh My Zsh, Prezto, antigen, zinit, zplug, starship, powerlevel10k, zsh-completions, zsh-autosuggestions, zsh-syntax-highlighting, and zsh-history-substring-search.

security posture

Risk level: yellow

doc example: shell runtime.

Risk classifier

yellow risk · high confidence · runtime

Why

  • doc example: shell runtime

Signals

  • override:zsh

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 2 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.zshenv~/.zprofile~/.zshrc~/.zlogin~/.zlogout

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.zshenv~/.zprofile~/.zshrc~/.zlogin~/.zlogout

executables

Installed executables

CommandKindExposureNote
zshcliglobal executable
zsh-5.9cliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version5.9.1
manager updated2026-06-26
local dataok
upstreamnot checked
latest detectednot detected

https://www.zsh.org/

  • infoRelease/tag comparison is only available for GitHub repositories.https://www.zsh.org/none confidence

install metadata

Package metadata

Package keybrew:zsh
Version5.9.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/zsh
Homepagehttps://www.zsh.org/
Repositoryhttps://sourceforge.net/p/zsh/code
Upstream docshttps://zsh.sourceforge.io/Doc
LicenseMIT-Modern-Variant AND GPL-2.0-only AND GPL-2.0-or-later AND ISC
Source archivehttps://downloads.sourceforge.net/project/zsh/zsh/5.9.1/zsh-5.9.1.tar.xz
Last updated2026-06-26T12:13:30-04:00
Pulseupdated
Dependenciesncurses, pcre2
Build dependenciestexinfo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namezsh
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

zsh 5.9-8+b23

shell with lots of features

https://www.zsh.org/

sudo apt install zsh
  • Section: shells
  • Architecture: amd64
  • Source Package: zsh
  • 5 dependencies
  • 4 optional deps
  • normalized package name match
  • Matched by: Zsh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: zsh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

zsh-common 5.9-8

architecture independent files for Zsh

https://www.zsh.org/

sudo apt install zsh-common
  • Section: shells
  • Architecture: all
  • Source Package: zsh
  • 2 optional deps
  • normalized package name match
  • Matched by: Zsh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: zsh-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

zsh-dev 5.9-8+b23

shell with lots of features (development files)

https://www.zsh.org/

sudo apt install zsh-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: zsh
  • 1 dependencies
  • normalized package name match
  • Matched by: Zsh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: zsh-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

zsh-doc 5.9-8

zsh documentation - info/HTML format

https://www.zsh.org/

sudo apt install zsh-doc
  • Section: doc
  • Architecture: all
  • Source Package: zsh
  • 1 dependencies
  • normalized package name match
  • Matched by: Zsh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: zsh-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

zsh-static 5.9-8+b23

shell with lots of features (static link)

https://www.zsh.org/

sudo apt install zsh-static
  • Section: shells
  • Architecture: amd64
  • Source Package: zsh
  • 1 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Zsh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: zsh-static from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

zsh

nix profile install nixpkgs#zsh
  • normalized package name match
  • Matched by: Zsh
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/zs/zsh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

zsh 5.9-6ubuntu2

shell with lots of features

https://www.zsh.org/

sudo apt install zsh
  • Section: shells
  • Architecture: amd64
  • 5 dependencies
  • 4 optional deps
  • normalized package name match
  • Matched by: Zsh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: zsh from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

zsh-common 5.9-6ubuntu2

architecture independent files for Zsh

https://www.zsh.org/

sudo apt install zsh-common
  • Section: shells
  • Architecture: all
  • Source Package: zsh
  • 2 optional deps
  • normalized package name match
  • Matched by: Zsh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: zsh-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

zsh-dev 5.9-6ubuntu2

shell with lots of features (development files)

https://www.zsh.org/

sudo apt install zsh-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: zsh
  • 1 dependencies
  • normalized package name match
  • Matched by: Zsh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: zsh-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

zsh-doc 5.9-6ubuntu2

zsh documentation - info/HTML format

https://www.zsh.org/

sudo apt install zsh-doc
  • Section: doc
  • Architecture: all
  • Source Package: zsh
  • 1 dependencies
  • normalized package name match
  • Matched by: Zsh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: zsh-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

zsh-static 5.9-6ubuntu2

shell with lots of features (static link)

https://www.zsh.org/

sudo apt install zsh-static
  • Section: universe/shells
  • Architecture: amd64
  • Source Package: zsh
  • 1 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Zsh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: zsh-static from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

android-tools-zsh-completion 5.9-r7

Zsh completions for android-tools

https://www.zsh.org/

sudo apk add android-tools-zsh-completion
  • License: MIT-Modern-Variant AND GPL-2.0-only
  • Architecture: x86_64
  • Source Package: zsh
  • normalized package name match
  • Matched by: Zsh
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: android-tools-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

bzr-zsh-completion 5.9-r7

Zsh completions for bzr

https://www.zsh.org/

sudo apk add bzr-zsh-completion
  • License: MIT-Modern-Variant AND GPL-2.0-only
  • Architecture: x86_64
  • Source Package: zsh
  • normalized package name match
  • Matched by: Zsh
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bzr-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

composer-zsh-completion 5.9-r7

Zsh completions for composer

https://www.zsh.org/

sudo apk add composer-zsh-completion
  • License: MIT-Modern-Variant AND GPL-2.0-only
  • Architecture: x86_64
  • Source Package: zsh
  • normalized package name match
  • Matched by: Zsh
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: composer-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

cvs-zsh-completion 5.9-r7

Zsh completions for cvs

https://www.zsh.org/

sudo apk add cvs-zsh-completion
  • License: MIT-Modern-Variant AND GPL-2.0-only
  • Architecture: x86_64
  • Source Package: zsh
  • normalized package name match
  • Matched by: Zsh
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cvs-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

gcc-zsh-completion 5.9-r7

Zsh completions for gcc

https://www.zsh.org/

sudo apk add gcc-zsh-completion
  • License: MIT-Modern-Variant AND GPL-2.0-only
  • Architecture: x86_64
  • Source Package: zsh
  • normalized package name match
  • Matched by: Zsh
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gcc-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment