Map keyboard keys in Mac OS X (Unix)

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!

Amit

Posted 2011-08-29T14:13:53.090

Reputation: 371

My question, if not clear from the description, is how would I go about mapping the CTRL+q command to the home button? – Amit – 2011-08-29T14:14:51.747

1

bind is available for OSX's shell: http://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 – 2011-08-29T14:34:22.793

sure, feel free to give me an upvote there. – mbrownnyc – 2011-08-30T13:05:56.363

Sorry for the delay, but I up-voted you :) +1 – Amit – 2011-09-01T13:30:47.113

No answers