Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Currently, when you're inside a terminal, CTRL+a move the cursor to the beginning, while CTRL+e move it to the end. I use those key combinations a lot since I don't have the home and end buttons on my keyboard.

I recently installed tmux, which is a terminal-multiplexer very similar to Screen. It uses the key-combination CTRL-a as the initiate command. Therefore, I want to remap the "home" key to CTRL+q. I read somewhere that with BASH, you need to create a file called .inputrc under the ~/ directory. I did that, but I am not familiar with the mapping commands.

Thanks!

share|improve this question
    
My question, if not clear from the description, is how would I go about mapping the CTRL+q command to the home button? –  Amit Aug 29 '11 at 14:14
1  
bind is available for OSX's shell: ss64.com/osx but since I've never used it and can't find explicit OSX syntax, I'll just add this as a comment... take a look into that though :) –  mbrownnyc Aug 29 '11 at 14:34
1  
Thank you, I appreciate that –  Amit Aug 29 '11 at 19:52
    
sure, feel free to give me an upvote there. –  mbrownnyc Aug 30 '11 at 13:05
    
Sorry for the delay, but I up-voted you :) +1 –  Amit Sep 1 '11 at 13:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.