为什么重命名窗口命令隐藏我的Tmux状态栏?

时间:2019-03-22 16:34:32

标签: centos tmux

我对Tmux相对较新(在CentOS上为2.4),并对随后的.tmux.conf进行了一些修改。

#enable intuitive mouse behavior
set -g mouse off

# Refersh .tmux.conf
bind r source-file ~/.tmux.conf \;
display "Tmux Reloaded!"

# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix

# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %

# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# don't rename windows automatically
set-option -g allow-rename off

# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1

当我在.tmux.conf中添加最后两行时,rename命令停止工作。

# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1

当我删除它并重新启动tmux后,功能将恢复正常。

关于如何解决此问题的任何建议?

0 个答案:

没有答案