Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

You must log in to answer this question.

Browse other questions tagged .