prevented ps from truncating username in its output, resolves #241

This commit is contained in:
Gregory Pakosz 2019-05-05 20:13:11 +02:00
parent ef8962bb39
commit 8809af7c9f
1 changed files with 2 additions and 2 deletions

View File

@ -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 {