bash
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| bash [2026/10/16 23:32] – reddy | bash [2026/10/17 00:39] (current) – reddy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== bash ====== | + | ====== bash / zsh ====== |
| ===== untilfail script ===== | ===== untilfail script ===== | ||
| Line 26: | Line 26: | ||
| Ctrl T : Swap characters before cursor | Ctrl T : Swap characters before cursor | ||
| Esc T : Swap words before cursor | Esc T : Swap words before cursor | ||
| + | Esc C : Capitalize current character and move to end of the word | ||
| Esc F : Forward 1 word | Esc F : Forward 1 word | ||
| Line 34: | Line 35: | ||
| Ctrl B : Back 1 character | Ctrl B : Back 1 character | ||
| Ctrl XX : Toggle between positions in a line | Ctrl XX : Toggle between positions in a line | ||
| + | Ctrl R : Search history | ||
| Ctrl L : Clear screen | Ctrl L : Clear screen | ||
| Ctrl C : Kill running command | Ctrl C : Kill running command | ||
| + | |||
| + | !! : Run previous command | ||
| + | !< | ||
| + | !< | ||
| + | !<n> : Run nth command in history | ||
| + | !^ : First arg of last command | ||
| + | !$ : Last arg of last command | ||
| + | ^find^replace^ : Substitute in last command and run | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== bash Other ===== | ||
| + | |||
| + | < | ||
| + | bind -p # List keymap in bash | ||
| + | </ | ||
| + | |||
| + | ===== zsh Other ===== | ||
| + | |||
| + | < | ||
| + | bindkey | ||
| + | zle -al # List of all commands to use in bindings | ||
| + | bindkey -e # emacs mode | ||
| + | bindkey -v # vi mode | ||
| + | </ | ||
| + | |||
bash.1792186326.txt.gz · Last modified: by reddy
