From 8809af7c9f6f8f325eb88dfc0b31a2f89e57ff53 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 5 May 2019 20:13:11 +0200 Subject: [PATCH] prevented ps from truncating username in its output, resolves #241 --- .tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 9c995c2..163eaf1 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -478,8 +478,8 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # } # ' # else -# ps -t "$tty" -o user= -o pid= -o ppid= -o command= | awk ' -# (/ssh/ && !/-W/) || !/ssh/ { +# 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 # } # END {