fixed #{username} broken under Cygwin
This commit is contained in:
+1
-1
@@ -465,7 +465,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
|||||||
# ssh_only=$2
|
# ssh_only=$2
|
||||||
# # shellcheck disable=SC2039
|
# # shellcheck disable=SC2039
|
||||||
# if [ x"$OSTYPE" = x"cygwin" ]; then
|
# if [ x"$OSTYPE" = x"cygwin" ]; then
|
||||||
# pid=$(ps -a | awk -v tty="${tty##/dev/}" '$5 == tty && /ssh/ && && !/vagrant ssh/ && !/autossh/ && !/-W/ { print $1 }')
|
# pid=$(ps -a | awk -v tty="${tty##/dev/}" '$5 == tty && /ssh/ && !/vagrant ssh/ && !/autossh/ && !/-W/ { print $1 }')
|
||||||
# [ -n "$pid" ] && ssh_parameters=$(tr '\0' ' ' < "/proc/$pid/cmdline" | sed 's/^ssh //')
|
# [ -n "$pid" ] && ssh_parameters=$(tr '\0' ' ' < "/proc/$pid/cmdline" | sed 's/^ssh //')
|
||||||
# else
|
# else
|
||||||
# ssh_parameters=$(ps -t "$tty" -o command= | awk '/ssh/ && !/vagrant ssh/ && !/autossh/ && !/-W/ { $1=""; print $0; exit }')
|
# ssh_parameters=$(ps -t "$tty" -o command= | awk '/ssh/ && !/vagrant ssh/ && !/autossh/ && !/-W/ { $1=""; print $0; exit }')
|
||||||
|
|||||||
Reference in New Issue
Block a user