diff --git a/tmux/tmux.conf b/tmux/tmux.conf index c20c230..3ed193b 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -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, ,}' +setw -g pane-border-format " #{pane_current_path} #{=/-20/…:pane_current_command} ${ps_pid}[${cmd}] #{?alternate_on, ,}" set -g pane-border-style "fg=${fg_inactive_pane}" set -g pane-active-border-style "fg=${fg_active_pane}"