Skip to content

Instantly share code, notes, and snippets.

@jenkek
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jenkek/66af09b7c6a0d5302cbc to your computer and use it in GitHub Desktop.
Save jenkek/66af09b7c6a0d5302cbc to your computer and use it in GitHub Desktop.
bash history search in freebsd
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