DEV Community

Discussion on: Turbocharge your Linux terminal productivity with these 12 tips

Collapse
 
pbnj profile image
Peter Benjamin (they/them) • Edited

Nice post.

My workflow is similar.

Alt+Left and Alt+Right let you do word jumps

Alt-b and Alt-f achieve the same (move cursor back or forward one word at a time)

Bonus: Ctrl-a (move cursor to beginning of prompt) and Ctrl-e (move cursor to end of prompt)

Alt+Backspace erases one word at a time.

Also, Ctrl-w

Bonus: Ctrl-k (delete everything from cursor to beginning) and Ctrl-u (delete everything from cursor to end)

Lastly, I don't know about zsh, but in bash, if you press Ctrl-x + Ctrl-e, you can edit bash commands in $EDITOR before running/executing the command

Collapse
 
pieter profile image
Pieter D

Always good to have more options! I suppose that keystrokes with letters are easier to reach for most people.

Also, I'm happy to confirm that your Ctrl+X -> Ctrl+E tip also works in Zsh here. Thanks Peter!