将 ctrl+b tmux 前缀重新映射到 §+q

问题描述 投票:0回答:0

我在 macOS 上使用 tmux 和 iTerm2。我以前使用 ctrl+a 作为前缀,但现在我发现“§+q”对我来说更方便(这些按钮在我的布局中彼此靠近)。但我无法重新绑定它,因为 tmux 告诉我这是一个不正确的组合。

我修改了 tmux.conf

# tmux.conf
unbind C-b
set -g prefix §q
bind §q send-prefix

然后得到这个

# tmux output
user/.config/tmux/tmux.conf:6: bad key: §q                                                                                                                                                                                                                                
user/.config/tmux/tmux.conf:7: unknown key: §q
macos terminal console tmux key-bindings
© www.soinside.com 2019 - 2024. All rights reserved.