Skip to content

Instantly share code, notes, and snippets.

@akahn
Last active March 23, 2020 15:55
Show Gist options
  • Save akahn/d7b7fd13b2a73cfa925d9e1fb5801a58 to your computer and use it in GitHub Desktop.
Save akahn/d7b7fd13b2a73cfa925d9e1fb5801a58 to your computer and use it in GitHub Desktop.
Some helpful keyboard shortcuts for bash
Jump forward/back one word
alt-b/alt-f
Go to beginning/end of line
^a/^e
Delete to beginning of command
^u
Navigate through history of commands (this works in many places in OS X)
ctrl-p/ctrl-n
Open current command line in editor (exiting editor executes the command)
^x^e
Pull last command's arguments into current command
alt-.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment