-
-
Save jackd942/e82129cf3bf529d8ac7cc4fa5b4067fa to your computer and use it in GitHub Desktop.
Shortcuts to Improve Your Bash & Zsh Productivity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bindkey -e | |
bindkey \^u backward-kill-line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Shortcut — Action | |
- [x] `CTRL + A` — Move to the beginning of the line | |
- [x] `CTRL + E` — Move to the end of the line | |
- [ ] `CTRL + [left arrow]` — Move one word backward (on some systems this is ALT + B) | |
- [ ] `CTRL + [right arrow]` — Move one word forward (on some systems this is ALT + F) | |
- [ ] `CTRL + U` — (bash) Clear the characters on the line before the current cursor position | |
- [ ] `CTRL + U` —(zsh) If you're using the zsh, this will clear the entire line | |
- [ ] `CTRL + K` — Clear the characters on the line after the current cursor position | |
- [ ] `ESC + [backspace]` — Delete the word in front of the cursor | |
- [x] `CTRL + W` — Delete the word in front of the cursor | |
- [ ] `ALT + D` — Delete the word after the cursor | |
- [x] `CTRL + R` — Search history | |
- [ ] `CTRL + G` — Escape from search mode | |
- [ ] `CTRL + -` — Undo the last change | |
- [x] `CTRL + L` — Clear screen | |
- [ ] `CTRL + S` — Stop output to screen | |
- [ ] `CTRL + Q` — Re-enable screen output | |
- [x] `CTRL + C` — Terminate/kill current foreground process | |
- [x] `CTRL + Z` — Suspend/stop current foreground process | |
- [ ] `!!` — Execute last command in history | |
- [ ] `!abc` — Execute last command in history beginning with abc | |
- [ ] `!abc:p` — Print last command in history beginning with abc | |
**Source**: http://www.geekmind.net/2011/01/shortcuts-to-improve-your-bash-zsh.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment