gpt4 book ai didi

tmux - Tmux 的某些设置不起作用

转载 作者:行者123 更新时间:2023-12-04 23:04:27 34 4
gpt4 key购买 nike

在 Mac Mountain Lion 上,tmux 通过 Homebrew 安装。

以下某些设置不起作用:

setw -g pane-base-index 1
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on

然后报错:
/Users/millisami/.tmux.conf: 52: unknown option: pane-base-index
/Users/millisami/.tmux.conf: 53: unknown option: mouse-resize-pane
/Users/millisami/.tmux.conf: 55: unknown option: mouse-select-window

怎么了?

最佳答案

正如 rado 所说,tmux 2.1 不支持单独的鼠标设置。它用一个设置代替了它们,mouse可以用 set -g mouse on 设置在你的 ~/.tmux.conf 中。

至于pane-base-index设置,马克尼科尔斯的建议:

# set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1

在运行通过 iTerm 2.1.4 中的 brew 安装的 tmux 2.1 的 OS X 10.10.5 上为我工作。

关于tmux - Tmux 的某些设置不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16055060/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com