simple:zsh
Zsh Shortcuts
Terminal
By EZ4Code Team
Basics
6| Shortcut | Description | Platform |
|---|---|---|
| Tab | Complete | all |
| Ctrl+R | Reverse search history | all |
| Ctrl+A | Beginning of line | all |
| Ctrl+E | End of line | all |
| Ctrl+W | Delete word backward | all |
| Ctrl+U | Delete to beginning | all |
Globbing
6| Shortcut | Description | Platform |
|---|---|---|
| * | Match any | all |
| ** | Recursive match | all |
| ? | Match single char | all |
| [abc] | Match set | all |
| ^pattern | Negate match | all |
| (a|b) | Match alternatives | all |
Expansion
6| Shortcut | Description | Platform |
|---|---|---|
| $VAR | Variable expansion | all |
| $(command) | Command substitution | all |
| ${var:-default} | Default value | all |
| ~ | Home directory | all |
| {a,b,c} | Brace expansion | all |
| $((expr)) | Arithmetic expansion | all |
History
6| Shortcut | Description | Platform |
|---|---|---|
| !! | Last command | all |
| !$ | Last arg of last command | all |
| !n | Command by number | all |
| !string | Last command starting with string | all |
| Ctrl+P | Previous command | all |
| Ctrl+N | Next command | all |
Widgets
5| Shortcut | Description | Platform |
|---|---|---|
| Alt+. | Insert last arg | all |
| Ctrl+_ | Undo | all |
| Esc+Q | Push line | all |
| Alt+Q | Push line (alt) | all |
| Ctrl+X Ctrl+E | Edit command in editor | all |