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: rootpoot on Oct 30, '03 03:11:29PM

I'd like to bind option-up and option-down to history-search-backward and history-search-forward, respectively, but can't figure out how.

The readline man page leads me to believe I could use \M-[A. but this doesn't work.



[ Reply to This | # ]
10.3: Assign arrow keys to history search in bash
Authored by: watson on Oct 31, '03 01:05:27PM

Hmm, did you try \\M-[A to protect the shell of interpreting the backslash? Or '\M-[A' ?

Just my .02,
Henrik



[ Reply to This | # ]