!$ uses the last argument on the previous command line.
!! repeats the last command.
!l repeats the last command that starts with l.
!32 runs command #32 from the history.
bindkey -L shows the list of keybindings.
zle -la shows the list of commands that can be bound.
ls =top will show the full path to the top binary.
prompt -l shows available prompt profiles.
setop autocd lets you change directories without typing cd first.
cd ~- changes to the previous directory.
~2 goes to the second directory in the directory stack.
~-0 goes to the final directory in the directory stack.
touch {1...10}.txt creates 10 test files.
Turning from the blaze to the counterpanel //
I saw how we are all great in our shortcomings, yea //
greater because of them. There are letters in the alphabet //
we don't know yet, but when we've remembered them //
we'll know the luster of unsupported things. //
Our negativity will have caught up with us //
and we'll be better for it. Just //
keep turning on lights, wasting electricity, //
carousing with aardvarks, smashing the stemware. //
These apartments we live in are nicer //
than where we lived before, near the beginning. //
-- John Ashbery, "When I Saw the Invidious Flare"
This page was last modified on 2011 December 20. "NotesZsh" by John Sullivan is Copyright ©2003 - 2011, and licensed under the Creative Commons Attribution-Share Alike 3.0 United States License.