Multiple tmux prefix key combos?

前提是你 提交于 2019-12-09 07:41:32

问题


I've got tmux setup just the way I like it, and my chosen key of prefix is `, because it's so quick and easy to use.

Everything was gravy until I tried using tmux from my phone, which doesn't have a ` key. Is there anyway to additionally bind ^a to the prefix, so I can use BOTH combos at the same time?


回答1:


Starting with tmux 1.6, you can use the session option prefix2 to specify a second prefix key (e.g. in ~/.tmux.conf):

set-option -g prefix `
set-option -g prefix2 C-a

Note: If you have any bindings or script that use the send-prefix, you can use its -2 option to send the key assigned to prefix2: send-prefix -2.

Prior to tmux 1.6, the prefix option accepted a comma-separated list of keys:

set-option -g prefix `,C-a


来源:https://stackoverflow.com/questions/10148449/multiple-tmux-prefix-key-combos

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!