tmux heading
This commit is contained in:
+4
-1
@@ -27,8 +27,11 @@ bg_active_window="color252"
|
||||
bg_highlight="red"
|
||||
|
||||
# pane title
|
||||
ps_pid='#(pgrep -P "#{pane_pid}" | tr "\n" " ")'
|
||||
cmd='#(ps --no-headers -o args $(pgrep -P "#{pane_pid}"))'
|
||||
# cmd='#(ps --no-headers -t #{pane_tty} -o args -O-c | tr "\n" " ")'
|
||||
setw -g pane-border-status top
|
||||
setw -g pane-border-format ' #{=/-20/…:pane_title} [#{=/-20/…:pane_current_command}] #(pgrep -P "#{pane_pid}" | tr "\n" " ")#{pane_current_path} #{?alternate_on,<Alt Mode> ,}'
|
||||
setw -g pane-border-format " #{pane_current_path} #{=/-20/…:pane_current_command} ${ps_pid}[${cmd}] #{?alternate_on,<Alt Mode> ,}"
|
||||
set -g pane-border-style "fg=${fg_inactive_pane}"
|
||||
set -g pane-active-border-style "fg=${fg_active_pane}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user