Skip to content

Instantly share code, notes, and snippets.

@dlfinis
Forked from snipe/inputrc
Created May 11, 2021 15:41
Show Gist options
  • Save dlfinis/041419d565c3305eb56e6dc6fad67903 to your computer and use it in GitHub Desktop.
Save dlfinis/041419d565c3305eb56e6dc6fad67903 to your computer and use it in GitHub Desktop.
~/.inputrc for nice bash history up-arrows. This allows you to search through your history using the up and down arrows … i.e. type "cd /" and press the up arrow and you'll search through everything in your history that starts with "cd /". Create ~/.inputrc and fill it with this:
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment