What is the tmux prefix code for command key on mac?
24,394
tmux
supports Alt+key (Meta+key) by prefixing the key
with M-
, or Ctrl+key with the C-
prefix in the key binding specification. There is no support for any other modifier keys.
Related question on the SuperUser site: bind tmux prefix to OS X cmd key (or any other binding)
Also this random Reddit post: tmux on OS X: how to use the Cmd key with bind?
The general gist of these posts is to rebind a macOS command key sequence with some other software to send an Alt or Ctrl key sequence to tmux
.
Related videos on Youtube
![foreyez](https://i.stack.imgur.com/FImru.png?s=256&g=1)
Author by
foreyez
Updated on September 18, 2022Comments
-
foreyez almost 2 years
I'd like to change my tmux prefix key from control to command (on mac).
I have an example on how to set it to alt:
set-option -g prefix M-b
-
foreyez almost 6 years@NickODell I looked there, but noone talks about just setting the option
-
-
foreyez almost 6 yearsfor some reason alt didn't work for me. ended up mapping the prefix to control-space on my mac. "set-option -g prefix C-Space"