Pane Title in Tmux

前端 未结 9 958
时光说笑
时光说笑 2020-12-22 16:56

On my local machine I\'ve got 3 node.js instances running simultaneously. Each has it\'s own pane in a tmux window called \"servers\". The problem is that it\'s not that eas

9条回答
  •  难免孤独
    2020-12-22 17:37

    This functionality has been added to tmux in this commit. It is not in version 2.2, but it looks like it will be in 2.3.

    To enable it:

    tmux set -g pane-border-status top
    

    or if you prefer:

    tmux set -g pane-border-status bottom
    

    To set a custom text as your pane border status line you can make use of pane-border-format, e.g. like so:

    tmux set -g pane-border-format "#{pane_index} #{pane_current_command}"
    

提交回复
热议问题