Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我按照我喜欢的方式设置了 tmux,我选择的前缀键是 `,因为它非常快速且易于使用。
在我尝试使用手机中没有 ` 键的 tmux 之前,一切都是肉汁。反正有没有额外绑定 ^a 到前缀,所以我可以同时使用BOTH组合?
从tmux 1.6 开始,您可以使用 session 选项prefix2指定第二个前缀键(例如 in ~/.tmux.conf):
prefix2
~/.tmux.conf
set-option -g prefix ` set-option -g prefix2 C-a
注意:如果您有任何使用 的绑定或脚本send-prefix,您可以使用其-2选项发送分配给prefix2: 的密钥send-prefix -2。
send-prefix
-2
send-prefix -2
在tmux 1.6 之前,该prefix选项接受以逗号分隔的键列表:
prefix
set-option -g prefix `,C-a