From b1e3bd70aa05955b93a29eca9bc0c108a8c80725 Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Wed, 23 Apr 2025 13:38:00 +0200 Subject: [PATCH] tmux heading --- tmux/tmux.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}"