Eg: Typing $ vim and pressing the up arrow will return all commands that start with vim. So simple, so powerful.
Setup:
$ cd ~
$ touch .inputrc
Add the following to .inputrc
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
That's it! Now you have awesome history search.
No comments:
Post a Comment