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
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI'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
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
.