Skip to content

Instantly share code, notes, and snippets.

@hgfischer
Last active March 20, 2017 17:23
Show Gist options
  • Save hgfischer/8610078 to your computer and use it in GitHub Desktop.
Save hgfischer/8610078 to your computer and use it in GitHub Desktop.
Shell Shortcuts (emacs mode)
ctrl + a: move cursor to first char
ctrl + e: mode cursor to last char
ctrl + u: cut to the first char
ctrl + k: cut to the last char
ctrl + y: paste the clipboard of ctrl+k or ctrl+u
ctrl + r: history reverse search
ctrl + l: clear screen
ctrl + w: delete word to the left
ctrl + t: swap the last two chars and move cursor to the right
ctrl + v + tab: insert tab in shell
alt + f: move cursor to next word
alt + b: move cursor to previous word
alt + .: paste the last argument of the last entered command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment