50

Is it possible to change the tmux prefix keyboard shortcut Ctrl+B to Alt+B?

3 Answers 3

50

Yes. See for example this link:

set-option -g prefix M-b
2
  • zsh: command not found: set-option
    – alper
    Commented Dec 2, 2021 at 1:17
  • 1
    @alper tmux before, or add to ~/.tmux.conf, or <prefix>:
    – SOFe
    Commented May 5, 2022 at 5:26
21

Just extracted the link answered by @Lars Kotthof:

Changing tmux prefix to Alt+b:

set-option -g prefix M-b
12

As other have noted, you can do this by describing your favorite control sequence in e.g. the ~/.tmux.conf config file.

set-option -g prefix M-b

You can also execute this from within tmux by using the command-prompt command, ie. the current prefix and the : character, to run the set-option command interactively. I.e., type Ctrl-b then these characters, as is:

:set-option -g prefix M-b

followed by the Enter key

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .