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: Lri on Jun 11, '12 02:57:31AM

I've assigned the commands to ⌥↑ and ⌥↓ instead. If you want the shortcuts to be available in other shells and programs, you can add them to ~/.inputrc (which is used to configure the same Readline keybindings and settings that can be set with the bind builtin).

"\M-\e[A": history-search-backward
"\M-\e[B": history-search-forward
Edited on Jun 11, '12 02:57:49AM by Lri


[ Reply to This | # ]