【问题标题】:tmux shows configurations on starttmux 在启动时显示配置
【发布时间】:2014-11-07 18:45:33
【问题描述】:

TMUX 在启动时显示配置:

set option: status-fg -> colour231
set option: status-bg -> colour234
set option: window-status-fg -> colour249
set option: window-status-activity-attr -> none
set option: window-status-bell-attr -> none
set option: window-status-activity-fg -> yellow
set option: window-status-bell-fg -> red

如何让tmux不显示呢?每次打开 tmux 时,我都必须按任意键才能使该文本消失并开始使用终端。 这是我的 tmux 配置文件:

source ~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf #powerline tmux plugin
run-shell "powerline-daemon -q"
set -g default-terminal "screen-256color"

这个问题是我安装tmux-powerline插件的时候出现的

~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf 内容:

    1 if-shell 'test -z "$POWERLINE_CONFIG_COMMAND"' 'set-environment -g POWERLINE_CONFIG_    COMMAND powerline-config'
    2 
    3 # Don’t version-check for this core functionality -- anything too old to
    4 # support these options likely won’t work well with powerline
    5 set -g status on
    6 set -g status-utf8 on
    7 set -g status-interval 2
    8 set -g status-left-length 20
    9 set -g status-right '#(eval $POWERLINE_COMMAND tmux right -R pane_id=`tmux display -p "#D"`)'

   10 set -g status-right-length 150
   11 set -g window-status-format "#[fg=colour244,bg=colour234]  #I #[fg=colour240] #[def    ault]#W "
   12 set -g window-status-current-format "#[fg=colour234,bg=colour31]#[fg=colour117,bg=c    olour31] #I  #[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]"
   13 
   14 # Legacy status-left definition to be overwritten for tmux Versions 1.8+
   15 set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,    nobold]#(eval $POWERLINE_COMMAND tmux left)'
   16 
   17 # Simplify tmux version checking by using multiple config files. Source these
   18 # config files based on the version in which tmux features were added and/or
   19 # deprecated. By splitting these configuration options into separate files,
   20 run-shell 'eval $POWERLINE_CONFIG_COMMAND tmux source'
   21 # vim: ft=tmux

谢谢。

【问题讨论】:

    标签: tmux vim-powerline


    【解决方案1】:

    1) 我认为您运行 tmux 1.8 ,更新到版本 1.9a 并且应该消失了。(这对我有用)

    2) 如果你不能更新试试这个:

    这四个命令使这样的屏幕出现(每个和它的别名)(最后一个使用小写p):

    new-session -P
    new -P
    ---------
    new-window -P
    neww -P
    ---------
    break-pane -P
    breakp -P
    ---------
    display-message -p
    display -p
    

    第 9 行使用display -p

    set -g status-right '#(eval $POWERLINE_COMMAND tmux right -R pane_id=`tmux display -p "#D"`)'
    

    尝试删除

    -R pane_id=`tmux display -p "#D"
    

    杀死 tmux 并重新启动它

    【讨论】:

      猜你喜欢
      • 2018-04-17
      • 1970-01-01
      • 2014-02-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-21
      相关资源
      最近更新 更多