1
0
Fork 0
mirror of synced 2024-12-21 22:31:06 -05:00

optimized _tty_info()

This commit is contained in:
Gregory Pakosz 2019-09-29 13:14:37 +02:00
parent 7d02a72a46
commit 22de553361

View file

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