I'm using Putty Connection Manager which captures CTRL-R key before it can get to my bash shell.

So I was wondering if it is possible to map the reverse-history-search to another shortcut key. Such as CTRL-W or maybe even F1.

Any help would be appreciated.


Absolutely. The READLINE section of the bash(1) man page tells you what you need to do and how you need to do it. In short, modify ~/.inputrc and bind reverse-search-history to something else.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.