Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Assign arrow keys to history search in bash' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Assign arrow keys to history search in bash
Authored by: miggins on Dec 09, '03 04:59:45PM
I could not get the suggestions here to work, I ended up doing the following.
Type this into vi ~/.bash_profile, and in place of
<up>
type control + v, then up arrow. In place of
<down>
type control + v then down arrow. (Control V tells vi to put the next character in the doc, rather than just moving up when you press up arrow etc.)

bind '"<up>":history-search-backward'
bind '"<down>":history-search-forward'
Then close all Terminal windows, and quit the app, then open Terminal again and you should have the feature.

[ Reply to This | # ]