Bash History search

Usually, when typing ‘ls’ and pressing , your current input will be replaced with man mount. If you are using history seach, only past commands beginning with ‘ls’ (the current input) will be shown, in this case ‘ls /usr/src/linux-2.6.15-ARCH/kernel/power/Kconfig’.

You can enable this mode by adding to /etc/inputrc or your ~/.inputrc

"\e[A":history-search-backward
"\e[B":history-search-forward

ArchWiki :: Bash – ArchWiki

Author: WladyX on 27 October, 2008
Category: General, Scripts
1 response to “Bash History search”

Leave a Reply

Last articles