Examples and User Contributions
Scripts & Functions
-
Official Zsh Examples
-
zed
Edit small files with the command line editor
-
c2z
Convert csh aliases to zsh aliases/functions
-
multicomp
Completes all manner of files given prefixes for each path segment. e.g.
s/z/s -> src/zsh-2.4/src
-
Debbie Pickett
-
_first
Mail folder shortcuts - for new-style completion.
-
dual
Tie non-special variables like PATH and path together. In 3.1.9, this ability is built into the shell (typeset -T).
-
gwhence
Generic `whence'.
-
manwhence
A version of `whence' for manual pages.
-
reverse
Reverse all the argements, recursively --- for computer scientists.
-
tailsh
Run a file through shell, with ability to strip headers.
-
undual
Opposite to `dual'.
-
Bart Schaefer
-
autobg
How to get your job stuck automatically in the background when you press ^Z.
-
export
A neat way of turning `export' (or some other command) into a multi-line command in which you can put comments.
-
per_directory_history
How to get shell history to work separately in each directory.
-
show
A way of re-using globbed files in later commands without re-doing the expansion.
-
text
A way of testing whether a file is really text.
-
two_line_prompt
How to split your prompt into two lines. Note that 3.1.6 as a %(l...) prompt escape which may be easier than this.
-
Dominink Vogt
-
tele
A simple telephone database, implemented almost entirely in zsh with a little sed.
-
Fran Litterio
-
manpath
Search for a manual page containing the given argument.
-
Wolfgang Friebel
-
cpd
Change to previous directory: a menu-driven front end to the directory stack.
Completion Scripts (compctl)
-
Official Zsh Examples
-
Debbie Pickett
Startup Files
-
Official Zsh Examples
-
Debbie Pickett
-
Juhapekka Tolvanen
Another extensive set, with good use of different colours. To get at it, you need to download a .tar.bz2 archive.
-
Adam Spiers
A complicated example which makes use of some of the newer features