5 ms·
- CMD + A to go to front of current line. - CMD + E to go to end of current line. - `sudo !!` to run last command with `sudo`
by thisisrajat 7y ago
- CMD + A to go to front of current line.
- CMD + E to go to end of current line.
- `sudo !!` to run last command with `sudo`
- GoMonad 7y agoSlight generalization of the first two: many emacs keybindings work in bash.
- znpy 7y agoSlight generalisation: many of the emacs keybindings work with commands whose command interpreter is built using the gnu readline library (bash is one of those). Also, iirc the readine library cod also be switched to vin-like keybinding. Also, a nice surprise thst i found in macOS is that come keybindings like C-a and C-e work in textboxes in macOS.