1
0
Fork 0
mirror of synced 2024-11-17 23:15:35 -05:00

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

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 {