Skip to content

Instantly share code, notes, and snippets.

@enh
Created October 26, 2019 16:39
Show Gist options
  • Save enh/d05bf389fcd3539f71048fd3ce15faaa to your computer and use it in GitHub Desktop.
Save enh/d05bf389fcd3539f71048fd3ce15faaa to your computer and use it in GitHub Desktop.
A sensible default .inputrc.
$if Bash
set show-all-if-ambiguous on
# History search.
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[C": forward-char
"\e[D": backward-char
# Ctrl-Left/Ctrl-Right move by word.
"\e[1;5D": backward-word
"\e[1;5C": forward-word
"\e[5D": backward-word
"\e[5C": forward-word
$endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment