Hacker News new | ask | show | jobs
by thisisrajat 2518 days 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`

1 comments

Slight generalization of the first two: many emacs keybindings work in bash.
Slight 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.