zsh/bash keyboard shortcuts
Line Navigation:
Beginning of Line
⁃ control + a
End of Line
⁃ control + e
Move back a character
⁃ control + b
Move forward a character
⁃ control + f
Move one word backward
⁃ escape + b
Move forward one word
⁃ escape + f
Line Editing:
Delete the word before the cursor
⁃ control + w
Swap the last two characters before the cursor
⁃ control + t
Swap the last two words before the cursor
⁃ escape + t
Erase/Yank the word before the cursor
⁃ control + w
Paste in front of cursor
⁃ control + y
Clear line after the cursor
⁃ control + k
Clear line before the cursor
⁃ control + u
History:
Search through previously used commands
⁃ control + r