Difference between revisions of "Zsh"
From Christoph's Personal Wiki
(→External links) |
(→Tutorials / examples) |
||
Line 20: | Line 20: | ||
*[http://www.zsh.org/ Official website] | *[http://www.zsh.org/ Official website] | ||
===Tutorials / examples=== | ===Tutorials / examples=== | ||
+ | *[http://zshwiki.org/home/ zshwiki.org] | ||
*[http://grml.org/zsh/zsh-lovers.html zsh-lovers] | *[http://grml.org/zsh/zsh-lovers.html zsh-lovers] | ||
*[http://www.rayninfo.co.uk/tips/zshtips.html Zzappers Best of ZSH Tips] | *[http://www.rayninfo.co.uk/tips/zshtips.html Zzappers Best of ZSH Tips] |
Latest revision as of 20:35, 11 July 2012
The Z shell (zsh) is a Unix shell that can be used as an interactive login shell and as a powerful command interpreter for shell scripting. Zsh can be thought of as an extended Bourne shell with a large number of improvements, including some features of bash, ksh, and tcsh.
After nearly 14 years of using the Bash shell, I have switched to using zsh as my primary shell. It is awesome!
Examples
This section will include some quick-and-dirty examples of the power of zsh.
- The following was taken from the Zsh Mailing List Archive:
# zmv "programmable rename" # Replace spaces in filenames with a underline $ zmv '* *' '$f:gs/ /_' # Change the suffix from *.sh to *.pl $ zmv -W '*.sh' '*.pl' # lowercase/uppercase all files/directories $ zmv '(*)' '${(L)1}' # lowercase $ zmv '(*)' '${(U)1}' # uppercase