prevented ps from truncating username in its output, resolves #241
This commit is contained in:
parent
ef8962bb39
commit
8809af7c9f
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue