Zsh Shortcuts
5 categories ยท 29 shortcuts
01
Basics
6 shortcuts- CompleteTab
- Reverse search historyCtrl+R
- Beginning of lineCtrl+A
- End of lineCtrl+E
- Delete word backwardCtrl+W
- Delete to beginningCtrl+U
02
Globbing
6 shortcuts- Match any*
- Recursive match**
- Match single char?
- Match set[abc]
- Negate match^pattern
- Match alternatives(a|b)
03
Expansion
6 shortcuts- Variable expansion$VAR
- Command substitution$(command)
- Default value${var:-default}
- Home directory~
- Brace expansion{a,b,c}
- Arithmetic expansion$((expr))
04
History
6 shortcuts- Last command!!
- Last arg of last command!$
- Command by number!n
- Last command starting with string!string
- Previous commandCtrl+P
- Next commandCtrl+N
05
Widgets
5 shortcuts- Insert last argAlt+.
- UndoCtrl+_
- Push lineEsc+Q
- Push line (alt)Alt+Q
- Edit command in editorCtrl+XCtrl+E