Z shell explained

Z shell
Screenshot Size:300px
Author:Paul Falstad[1]
Developer:Peter Stephenson, et al.
Programming Language:C
Operating System:Cross-platform
Genre:Unix shell
License:MIT-Modern-Variant[2] [3]

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.

Zsh was created by Paul Falstad in 1990 while he was a student at Princeton University. It combines features from both ksh and tcsh, offering functionality such as programmable command-line completion, extended file globbing, improved variable/array handling, and themeable prompts.

Zsh is available for Microsoft Windows as part of the UnxUtils collection and has been adopted as the default shell for macOS and Kali Linux. The "Oh My Zsh" user community website provides a platform for third-party plug-ins and themes, featuring a large and active contributor base.

History

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]

Zsh was at first intended to be a subset of csh for the 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".[8]

Zsh is available for Microsoft Windows as part of the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities.[9]

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

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

Features

Features include:[13]

Community

A user community website known as "Oh My Zsh" collects third-party plug-ins and themes for the Z shell. As of 2024, their GitHub repository has over 2300 contributors, over 300 plug-ins, and over 140 themes. It also comes with an auto-update tool that makes it easier to keep installed plug-ins and themes updated.[14]

See also

External links

Notes and References

  1. Web site: The Z Shell Manual. Version 5.8.1. Sourceforge.io. July 21, 2012. March 29, 2022. February 20, 2018. https://web.archive.org/web/20180220011558/http://zsh.sourceforge.net/Doc/Release/Introduction.html#Author. live.
  2. Web site: zsh / Code / [281031] /LICENCE. Paul Falstad. February 7, 2015. March 2, 2021. https://web.archive.org/web/20210302213122/https://sourceforge.net/p/zsh/code/ci/master/tree/LICENCE. live.
  3. Web site: MIT License Modern Variant.
  4. Web site: zsh - a ksh/tcsh-like shell (part 1 of 8). alt.sources. December 14, 1990. September 18, 2012.
  5. Web site: Z-Shell Frequently-Asked Questions. Sourceforge.net. February 15, 2010. September 18, 2012. March 2, 2021. https://web.archive.org/web/20210302213122/http://zsh.sourceforge.net/FAQ/zshfaq01.html#l3. live.
  6. Web site: The Z-Shell (ZSH) Lovers' Page. Guckes.net. c. 2004. October 2, 2012. May 17, 2017. https://web.archive.org/web/20170517213919/http://www.guckes.net/zsh/lover.html. live.
  7. Web site: Zsh Mailing List Archive. Zsh.org. August 8, 2005. October 2, 2012. March 2, 2021. https://web.archive.org/web/20210302213117/https://www.zsh.org/mla/users/2005/msg00951.html. live.
  8. Web site: zsh 1.0 announcement . . 15 April 2021 .
  9. Web site: Native Win32 ports of some GNU utilities . 2020-07-25 . 2006-02-09 . https://web.archive.org/web/20060209022842/http://unxutils.sourceforge.net/ . live .
  10. Web site: Apple replaces bash with zsh as the default shell in macOS Catalina. Warren. Tom. June 4, 2019. The Verge. June 13, 2019. June 10, 2019. https://web.archive.org/web/20190610051842/https://www.theverge.com/2019/6/4/18651872/apple-macos-catalina-zsh-bash-shell-replacement-features. live.
  11. Web site: Use zsh as the default shell on your Mac - Apple Support . 1 July 2019 . 2 December 2019 . https://web.archive.org/web/20191202143802/https://support.apple.com/en-us/HT208050 . live .
  12. Web site: Kali Linux 2020.4 Release (ZSH, Bash, CME, MOTD, AWS, Docs, Win-KeX & Vagrant) Kali Linux Blog. 2021-03-03. Kali Linux. English.
  13. Web site: Z-Shell Frequently-Asked Questions. zsh.sourceforge.net. 2020-03-04. 2021-03-02. https://web.archive.org/web/20210302213122/http://zsh.sourceforge.net/FAQ/zshfaq01.html. live.
  14. Web site: ohmyzsh Github . Github .