From 15f03e7ce69d10609abc54144df9cad3dbcb9d7b Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 4 Jun 2017 04:03:54 -0700 Subject: [PATCH] fixed #{username} broken under Cygwin --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 12d3fdd..af28345 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -465,7 +465,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # ssh_only=$2 # # shellcheck disable=SC2039 # 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 //') # else # ssh_parameters=$(ps -t "$tty" -o command= | awk '/ssh/ && !/vagrant ssh/ && !/autossh/ && !/-W/ { $1=""; print $0; exit }')