Zsh
Resources
Section titled “Resources”- Replacing the File Manager in Zsh
- Oh My Zsh - framework for managing Zsh configuration
- Wikipedia
- A Beautifully Productive Terminal Experience
- Options documentation
- sorin-ionescu/prezto - a configuration framework for Zsh
Shortcuts
Section titled “Shortcuts”| Shortcut | Function |
|---|---|
Ctrl+R |
Search through the history |
Ctrl+C |
Stop running command |
Reminder: do not redeclare path
Section titled “Reminder: do not redeclare path”path is a pre-existing special zsh array tied to PATH; don’t redeclare/shadow it as an ordinary variable.
Generic form
Section titled “Generic form”for item in listdo command1 command2doneGeneric one-liner
Section titled “Generic one-liner”for item in list; do command1; command2; doneExample one-liner (show current branches)
Section titled “Example one-liner (show current branches)”for dir in ~/path1 ~/path2; do echo "$dir"; git -C "$dir" rev-parse --abbrev-ref HEAD; done