made _pane_info() aware of teleport's 'tsh proxy ssh' command, fixes #690
This commit is contained in:
parent
1b88bf2127
commit
5354501a5b
1 changed files with 3 additions and 3 deletions
|
@ -525,7 +525,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
|
||||||
# case "$_uname_s" in
|
# case "$_uname_s" in
|
||||||
# *CYGWIN*)
|
# *CYGWIN*)
|
||||||
# ps -al | tail -n +2 | awk -v pane_pid="$pane_pid" -v tty="$pane_tty" '
|
# ps -al | tail -n +2 | awk -v pane_pid="$pane_pid" -v tty="$pane_tty" '
|
||||||
# ((/ssh/ && !/-W/) || !/ssh/) && !/tee/ && $5 == tty {
|
# ((/ssh/ && !/-W/ && !/tsh proxy ssh/) || !/ssh/) && !/tee/ && $5 == tty {
|
||||||
# user[$1] = $6; if (!child[$2]) child[$2] = $1
|
# user[$1] = $6; if (!child[$2]) child[$2] = $1
|
||||||
# }
|
# }
|
||||||
# END {
|
# END {
|
||||||
|
@ -542,7 +542,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
|
||||||
# ;;
|
# ;;
|
||||||
# *Linux*)
|
# *Linux*)
|
||||||
# ps -t "$pane_tty" --sort=lstart -o user=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -o pid= -o ppid= -o command= | awk -v pane_pid="$pane_pid" '
|
# ps -t "$pane_tty" --sort=lstart -o user=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -o pid= -o ppid= -o command= | awk -v pane_pid="$pane_pid" '
|
||||||
# ((/ssh/ && !/-W/) || !/ssh/) && !/tee/ {
|
# ((/ssh/ && !/-W/ && !/tsh proxy ssh/) || !/ssh/) && !/tee/ {
|
||||||
# user[$2] = $1; if (!child[$3]) child[$3] = $2; pid=$2; $1 = $2 = $3 = ""; command[pid] = substr($0,4)
|
# user[$2] = $1; if (!child[$3]) child[$3] = $2; pid=$2; $1 = $2 = $3 = ""; command[pid] = substr($0,4)
|
||||||
# }
|
# }
|
||||||
# END {
|
# END {
|
||||||
|
@ -556,7 +556,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
|
||||||
# ;;
|
# ;;
|
||||||
# *)
|
# *)
|
||||||
# ps -t "/dev/$pane_tty" -o user=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -o pid= -o ppid= -o command= | awk -v pane_pid="$pane_pid" '
|
# ps -t "/dev/$pane_tty" -o user=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -o pid= -o ppid= -o command= | awk -v pane_pid="$pane_pid" '
|
||||||
# ((/ssh/ && !/-W/) || !/ssh/) && !/tee/ {
|
# ((/ssh/ && !/-W/ && !/tsh proxy ssh/) || !/ssh/) && !/tee/ {
|
||||||
# user[$2] = $1; if (!child[$3]) child[$3] = $2; pid=$2; $1 = $2 = $3 = ""; command[pid] = substr($0,4)
|
# user[$2] = $1; if (!child[$3]) child[$3] = $2; pid=$2; $1 = $2 = $3 = ""; command[pid] = substr($0,4)
|
||||||
# }
|
# }
|
||||||
# END {
|
# END {
|
||||||
|
|
Loading…
Reference in a new issue