Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

My current config for tmux is to use ` for prefix key

set-option -g prefix `

How can I change this to use the ALT key. Nothing else in combination.

share|improve this question

The ALT key doesn't send a specific key code to the terminal; rather, it modifies the key code sent by another key when it is held down simultaneously. As such, the ALT key by itself cannot be used as the tmux prefix.

[Edit: As Keith points out, the following will technically work but will almost certainly not behave the way you like.]

One workaround might be to configure your local setup or terminal emulator to change the behavior of the ALT key, perhaps to act as the Escape key. Then the following could work:

set-option -g prefix Escape
share|improve this answer
I don't think that will work. Terminal special keys all send codes starting with Esc, so any of those will probably trigger some random tmux command. – Keith Jun 8 '12 at 20:26

Your Answer


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

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