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 agree to our terms of service, privacy policy and cookie policy

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