From 22de5533615d4671e95f2c5719ef540864bd4853 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 29 Sep 2019 13:14:37 +0200 Subject: [PATCH] optimized _tty_info() --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 11a7bc8..4fdb638 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -525,7 +525,7 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim # else # ps -t "$tty" -o user=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -o pid= -o ppid= -o command= | awk ' # NR > 1 && ((/ssh/ && !/-W/) || !/ssh/) { -# user[$2] = $1; parent[$2] = $3; child[$3] = $2; for (i = 4 ; i <= NF; ++i) command[$2] = i > 4 ? command[$2] FS $i : $i +# user[$2] = $1; parent[$2] = $3; child[$3] = $2; pid=$2; $1 = $2 = $3 = ""; command[pid] = $0 # } # END { # for (i in parent)