Last active
August 29, 2015 14:05
-
-
Save jenkek/66af09b7c6a0d5302cbc to your computer and use it in GitHub Desktop.
bash history search in freebsd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Open your bash global profile file: | |
# vi /etc/profile | |
2) Add following line to it: | |
export INPUTRC=/usr/local/etc/inputrc | |
3) Close and save the file | |
4) Open the file /usr/local/etc/inputrc and define / modify key binding: | |
# vi /usr/local/etc/inputrc | |
5) Append following config data: | |
"\e[A":history-search-backward | |
"\e[B":history-search-forward | |
6) Close and save the file | |
7) Now logout and login back again to test your new key settings. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment