…yet, that is. Or if you do, you read the man page pretty well. :-)
zsh has gazillions of features, but I think these are pretty useful
for daily use:
su -c or ssh).<(command) returns the filename (in /dev/fd if supported or as a FIFO)
of the pipe given by command for reading. (For example,
use diff <(ruby foo.rb) <(ruby-1.9 foo.rb) to compare two program outputs).cd old new substitutes old with new once in the pwd and
chdirs there.!$ expands to the previous history line’s last argument, !^
expands to the first argument, !:n to the n-th argument.=foo expands to the full path of foo in the PATH (like which foo).for src in *.c do ... done can be abbreviated to for src (*.c) { ... }
(which is actually memorizable). You can even drop the curly braces
if you don’t have ; in the command.<42-69> globs numbers between 42 and 69. Drop the number(s) to make
it open-valued. {42..69} expands to the numbers between 42 and 69.*** expands recursively like **, but follows symbolic links.More tricks:
Happy hacking.
NP: Shriekback—Mistah Linn He Dead