Skip to content

Instantly share code, notes, and snippets.

@wildskyf
Last active April 3, 2017 13:14
Show Gist options
  • Save wildskyf/9b88427fb641b48fe6a8d2888b5ee6e4 to your computer and use it in GitHub Desktop.
Save wildskyf/9b88427fb641b48fe6a8d2888b5ee6e4 to your computer and use it in GitHub Desktop.
# Press up-arrow for previous matching command
"\e[A":history-search-backward
# Press down-arrow for next matching command
"\e[B":history-search-forward
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment