Reaching for the mouse — or worse, holding down backspace to fix a typo — is one of the biggest
hidden time-sinks for terminal users. These shortcuts work in Bash and Zsh (the default shells on
most Linux distros and macOS) and cover the moves you’ll use dozens of times a day.
If you run set -o vi in Bash (or have bindkey -v in Zsh), your line editing switches to vi-style
modal editing — Esc drops you into a command mode where h/j/k/l, 0/$, dw, and . behave
much like they do in the vi/vim editor. History search still works with Ctrl + R in insert mode,
or / and ? once you’re in command mode.
The fastest way to actually remember these is to pick two or three you don’t already use, and
force yourself to use them exclusively for a week instead of arrow keys or backspace. Ctrl + R
for history search and Ctrl + A / Ctrl + E for line jumps are the highest-value place to start.