Brew Zsh

Posted on  by admin
Z shell
Original author(s)Paul Falstad[1]
Developer(s)Peter Stephenson, et al.[1]
Initial release1990; 31 years ago
Stable release
5.8 / February 15, 2020; 14 months ago[2]
Written inC
Operating systemCross-platform
TypeUnix shell

ZSH is my favorite shell; it offers nice features like autocomplete with menus, remote autocomplete, commands correction, etc. Install ZSH is easy using homebrew, the only thing we have to do is use this command in the terminal. Brew install zsh Now to make ZSH the default shell we have to add the ZSH executable to the end of this file /etc/shells, like this. 4 The one-liner installation method found on requires a Bourne-compatible shell (e.g. Notably, fish, tcsh and csh will not work. Notably, fish, tcsh and csh will not work. The reason to brew zsh rather than take what MacOS provides is that you if you don’t you won’t get zsh updates until the next MacOS release. This was a bigger problem with bash since MacOS stopped updating it altogether due to license changes to GPL3, but regardless I recommend installing the latest zsh with homebrew if you are able.

The Z shell (Zsh) is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh.


Paul Falstad wrote the first version of Zsh in 1990[4] while a student at Princeton University.[5] The name zsh derives from the name of Yale professor Zhong Shao (then a teaching assistant at Princeton University) — Paul Falstad regarded Shao's login-id, 'zsh', as a good name for a shell.[6][7]

Mac install zsh

Zsh was at first intended to be a subset of csh for the Commodore Amiga, but expanded far beyond that. By the time of the release of version 1.0 in 1990 the aim was to be a cross between ksh and tcsh – a powerful 'command and programming language' that is well-designed and logical (like ksh), but also built for humans (like tcsh), with all the neat features like spell checking, login/logout watching and termcap support that were 'probably too weird to make it into an AT&T product'.

Zsh is available as a separate package for Microsoft Windows as part of the UnxUtils collection of nativeWin32ports of common GNU Unix-like utilities.[8]

In 2019, macOS Catalina adopted Zsh as the default login shell, replacing the aging GPLv2 licensed version of Bash,[9] and when Bash is run interactively on Catalina, a warning is shown by default.[10]

In 2020, Kali Linux adopted Zsh as the default shell since 2020.4 release.[11]


Z shell's configuration utility for new users

Features include:[12]

  • Programmable command-line completion that can help the user type both options and arguments for most used commands, with out-of-the-box support for several hundred commands
  • Sharing of command history among all running shells
  • Extended file globbing allows file specification without needing to run an external program such as find
  • Improved variable/array handling
  • Editing of multi-line commands in a single buffer
  • Spelling correction and autofill of command names (and optionally arguments, assumed to be file names)
  • Various compatibility modes, e.g. Zsh can pretend to be a Bourne shell when run as /bin/sh
  • Themeable prompts, including the ability to put prompt information on the right side of the screen and have it auto-hide when typing a long command
  • Loadable modules, providing among other things: full TCP and Unix domain socket controls, an FTP client, and extended math functions.
  • The built-in where command. Works like the which command but shows all locations of the target command in the directories specified in $PATH rather than only the one that will be used.
  • Named directories. This allows the user to set up shortcuts such as ~mydir, which then behave the way ~ and ~user do.

Oh My Zsh[edit]

Oh My Zsh logo
Zsh with Agnoster theme running on Konsole terminal emulator

A user community website known as 'Oh My Zsh' collects third-party plug-ins and themes for the Z shell.[13] As of 2019, their GitHub repository has over 1,350 contributors, over 250 plug-ins, and over 140 themes, of varying quality. It also comes with an auto-update tool that makes it easier to keep installed plug-ins and themes updated.[14][15]

See also[edit]


Brew Shirts

  1. ^ ab'The Z Shell Manual' (Version 5.0.0). July 21, 2012. Archived from the original on February 20, 2018. Retrieved September 18, 2012.
  2. ^'unposted: Release 5.8'. February 15, 2020. Archived from the original on February 17, 2020. Retrieved February 17, 2019.
  3. ^'zsh / Code / [281031] /LICENCE'. Paul Falstad. Archived from the original on March 2, 2021. Retrieved February 7, 2015.
  4. ^'zsh - a ksh/tcsh-like shell (part 1 of 8)'. alt.sources. December 14, 1990. Retrieved September 18, 2012.
  5. ^'Z-Shell Frequently-Asked Questions'. February 15, 2010. Archived from the original on March 2, 2021. Retrieved September 18, 2012.
  6. ^'The Z-Shell (ZSH) Lovers' Page'. c. 2004. Archived from the original on May 17, 2017. Retrieved October 2, 2012.
  7. ^'Zsh Mailing List Archive'. August 8, 2005. Archived from the original on March 2, 2021. Retrieved October 2, 2012.
  8. ^'Native Win32 ports of some GNU utilities'. Archived from the original on 2006-02-09. Retrieved 2020-07-25.
  9. ^Warren, Tom (June 4, 2019). 'Apple replaces bash with zsh as the default shell in macOS Catalina'. The Verge. Archived from the original on June 10, 2019. Retrieved June 13, 2019.
  10. ^'Use zsh as the default shell on your Mac - Apple Support'. Archived from the original on 2 December 2019. Retrieved 1 July 2019.
  11. ^'Kali Linux 2020.4 Release (ZSH, Bash, CME, MOTD, AWS, Docs, Win-KeX & Vagrant) Kali Linux Blog'. Kali Linux. Retrieved 2021-03-03.
  12. ^'Z-Shell Frequently-Asked Questions'. Archived from the original on 2021-03-02. Retrieved 2020-03-04.
  13. ^'Oh My ZSH - Community driven framework with 150+ plugins and 100+ themes'. Retrieved May 7, 2014.
  14. ^'robbyrussell/oh-my-zsh'. Archived from the original on 2021-03-02. Retrieved 2017-07-18. A delightful community-driven (with 1,000+ contributors) framework for managing your zsh configuration. Includes 200+ optional plugins (rails, git, OSX, hub, capistrano, brew, ant, php, python, etc), over 140 themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
  15. ^Russel, Robby. 'd'Oh My Zsh'. freeCodeCamp. Archived from the original on 30 September 2020. Retrieved 18 August 2020.

External links[edit]

  • zsh at Curlie

Brew Shed Plans

Retrieved from ''