Re:My favourite Zsh features
by ealloc on Saturday November 15, 2014 @02:43PM
(#8612446)
You can do it in bash too. I have this in my bashrc:
where ^[ is the escape character. This way, crtl-up goes to previous partial match (and up goes to last command as usual). I use it all the time.
[ Parent
| on HN ]
I have this to use the arrow keys without any modifier:
# Use up/down arrows to search on partially typed command
bind '"\e[A"':history-search-backward
bind '"\e[B"':history-search-forward
Just type the first letter(s) and use the up/down arrows to scroll through the filtered command history. Incredibly convenient.