Difference between revisions of "Zsh"
From Christoph's Personal Wiki
(New page: right 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 ca...) |
(→Tutorials / examples) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Image:Zsh lover.png|right]] | [[Image:Zsh lover.png|right]] | ||
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. | 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 [http://www.zsh.org/mla/users/2005/msg00174.html 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 | ||
==External links== | ==External links== | ||
*[http://www.zsh.org/ Official website] | *[http://www.zsh.org/ Official website] | ||
+ | ===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] | ||
*[http://www.tuxradar.com/content/z-shell-made-easy Z shell made easy] | *[http://www.tuxradar.com/content/z-shell-made-easy Z shell made easy] | ||
+ | *[http://zsh.sourceforge.net/Guide/zshguide.html A User's Guide to the Z-Shell] | ||
+ | *[http://www.ibm.com/developerworks/linux/library/l-z/index.html Curtains up: introducing the Z shell] | ||
+ | |||
+ | [[Category:Linux Command Line Tools]] |
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