如何使用键盘在 tmux 中选择会话 Ma
在 tmux 中,我正在运行多个会话。要切换会话,我按下 tmux 转义序列,然后按下 s
键。将显示会话列表:
现在我可以按 4
键,例如,如果我想进入会话 blacklist
。
我想要参加 g-orchestrator
会议。 如果不使用箭头键,我可以按什么组合键来进入该会话?
In tmux I have multiple sessions running. To switch sessions, I hit my tmux escape sequence and then the s
key. The session list appears:
Now I can hit the key 4
, for example, if I want to go to session blacklist
.
I want to go to session g-orchestrator
. Without using the arrow keys, what key combination can I hit to enter that session?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Ma 的意思是“Meta-a”,在大多数终端程序中通常是 Alt-a(在 Apple 的 Terminal.app 中,您必须启用应用程序首选项“使用选项作为 Meta 键”才能正常工作)。因此,在这种情况下,组合键 Alt-a 将直接带您进入该会话。其他会话可通过 Alt-b、Alt-c、Alt-d 等访问。
M-a means "Meta-a", which is usually Alt-a in most terminal programs (in Apple's Terminal.app you must enable the app preference "Use option as Meta key" before this will work). So, in this case, the key combination Alt-a will take you to that session directly. Additional sessions will be reachable via Alt-b, Alt-c, Alt-d, etc.
我正在使用 iTerm2。
在 iTerm2 上什么对我不起作用
在 iTerm2 上对我有用的方法
I am using iTerm2.
What did not work for me on iTerm2
What worked for me on iTerm2
来自 https://iterm2.com/faq.html
Esc+ 是大多数用户的最佳选择。我尝试了
Meta
和Normal
。如果不在 Tmux 中,Meta 可以工作,但在 Tmux 中则不起作用。From https://iterm2.com/faq.html
Esc+ is the best choice for most users. I tried
Meta
andNormal
. Meta worked if not in Tmux, but didn't work in Tmux.