1

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!

  • 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
  • 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

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.