首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >tmux 3.1无法在macOS上启动

tmux 3.1无法在macOS上启动
EN

Stack Overflow用户
提问于 2020-04-25 11:19:58
回答 2查看 2K关注 0票数 9

多年来,我一直喜欢使用tmux。今天早上,我的macOS机器上的homebrew将tmux的版本更新到了3.1。现在tmux无法启动。

这是我的.tmux.conf

代码语言:javascript
复制
# Set the prefix from C-b to C-a

set -g prefix C-a
unbind C-b

# Set the delay between prefix and command

set -s escape-time 1

# Set the base index for windows and panes

set -g base-index 1
setw -g pane-base-index 1

# Reload the file with Prefix r

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

# Ensure that we can send Ctrl-A to other apps

bind C-a send-prefix

# Split panes

bind | split-window -h
bind - split-window -v

# Move between panes

bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# Select panes quickly

bind -r C-h select-window -t :-
bind -r C-l select-window -t :+

# Resize panes

bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5

# Set mouse support off

setw -g mouse off

# Set the default terminal mode to 256color mode

set -g default-terminal "screen-256color"

# Enable activity alerts

setw -g monitor-activity on
set -g visual-activity on

# Set the status line's colors

set -g status-fg white
set -g status-bg black

# Set the color of the window list

set-window-option -g window-status-style "fg=cyan,bg=default"

# Set the colors for the active window

set-window-option -g window-status-current-style "fg=white,bg=red"

# Set pane colors

set-option -g pane-border-style "fg=green,bg=black"
set-option -g pane-active-border-style "fg=white,bg=yellow"

# Command/message line

set-option -g message-style "fg=white,bg=black"

# Status line left side

set -g status-left-length 40
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"

# Status line right side

set -g status-right "#(~/battery Discharging) / #[fg=cyan]%d %b %R"

# Update the status bar every sixty seconds

set -g status-interval 60

# Centre the window list

set -g status-justify centre

# Enable vi keys

setw -g mode-keys vi

# Shortcut for synchronize-panes toggle

bind C-s set-window-option synchronize-panes

# Log output to a text file on demand

bind P pipe-pane -o "cat >> ~/#W.log" \; display "Toggled logging to ~/#W.log"

# Allow vim sessions within tmux to use system clipboard

set-option -g default-command "reattach-to-user-namespace -l bash"

下面是我尝试启动tmux会话时发生的情况:

代码语言:javascript
复制
cockatoo6 ~  $ tmux new -s test
[exited]
^[[?62;4ccockatoo6 ~  $ 62;4c

62;4c的回应相当隐秘。

我一直在搜索标题为“从3.0a到3.1的更改”的change log,但到目前为止还没有发现对更改的描述,这表明我可能需要在配置中进行哪些更改。

任何有用的建议都将不胜感激。

EN

Stack Overflow用户

回答已采纳

发布于 2020-04-25 11:35:47

原因是在homebrew更新tmux之前就开始了一个旧的tmux会话。一旦我关闭了旧的会话(tmux kill-server),我就可以开始新的会话了。

票数 33
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61420563

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档