Skip to content

Instantly share code, notes, and snippets.

@manishval
Last active January 3, 2016 04:29
Show Gist options
  • Save manishval/8409471 to your computer and use it in GitHub Desktop.
Save manishval/8409471 to your computer and use it in GitHub Desktop.
Bash keyboard shortcuts
- command + a to go to the beginning of a line
- command + e to go to the end of a line
- alt+f forward word (unless system shortcut for file menu)
- alt+b back word
- command + b back char
- command + f forward char.
- command + u to kill (cut) from current location to beginning of the line
- command + k to kill (cut) from current location to end of line
- command + w to kill (cut) from current location to beginning of word
- command + y to paste (copied / cut) lines
- command + l to clear screen (I use the shit out of this)
- ctrl + shift + '-' (holding ctrl, shift, minus at the same time), for undo.
- option + click position to move the cursor to that position
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment