Skip to content

Instantly share code, notes, and snippets.

@tuna-f1sh
Last active August 17, 2016 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuna-f1sh/3998490f247736b4f235 to your computer and use it in GitHub Desktop.
Save tuna-f1sh/3998490f247736b4f235 to your computer and use it in GitHub Desktop.
My portable inputrc
# use ctrl+left/right arrow keys to jump over words
"\e[5C": forward-word
"\e[5D": backward-word
# enable autocomplete (using up/down arrow keys)
"\e[B": history-search-forward
"\e[A": history-search-backward
# ignore case when autocomplete file/directory name using tab
set completion-ignore-case on
# moving to begining and end of line (using F1 and F2)
"\eOP": beginning-of-line
"\eOQ": end-of-line
# kill a whole line (using F3)
"\eOR": kill-whole-line
# Expand history after !! with space
#Space:magic-space # useful but causes problems with bash hooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment