Skip to content

Instantly share code, notes, and snippets.

@zhiboz
Forked from snipe/inputrc
Created February 28, 2019 00:03
Show Gist options
  • Save zhiboz/2719c2b2c66c0a9f3d74bb3ea5183bcf to your computer and use it in GitHub Desktop.
Save zhiboz/2719c2b2c66c0a9f3d74bb3ea5183bcf 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