Difference between revisions of "Zsh"

From Christoph's Personal Wiki
Jump to: navigation, search
(External links)
Line 19: Line 19:
 
==External links==
 
==External links==
 
*[http://www.zsh.org/ Official website]
 
*[http://www.zsh.org/ Official website]
 +
===Tutorials / examples===
 
*[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]]
 
[[Category:Linux Command Line Tools]]

Revision as of 02:29, 16 June 2012

Zsh lover.png

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.

# 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

Tutorials / examples