多个 tmux 前缀键组合? [英] Multiple tmux prefix key combos?

查看:38
本文介绍了多个 tmux 前缀键组合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照我喜欢的方式设置了 tmux,我选择的前缀键是 `,因为它非常快速且易于使用.

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.

在我尝试从我的手机使用 tmux 之前,一切都是肉汁,它没有 ` 键.无论如何,是否可以将 ^a 附加到前缀上,以便我可以同时使用 BOTH 组合?

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?

推荐答案

tmux 1.6 开始,您可以使用会话选项 prefix2 来指定第二个前缀键 (例如在 ~/.tmux.conf):

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

注意:如果您有任何使用 send-prefix 的绑定或脚本,您可以使用其 -2 选项发送分配给 prefix2 的密钥: send-prefix -2.

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.

tmux 1.6 之前,prefix 选项接受逗号分隔的键列表:

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

set-option -g prefix `,C-a

这篇关于多个 tmux 前缀键组合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆