diff --git a/.tmux.conf b/.tmux.conf index 12a5841..ee021f5 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -593,6 +593,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration' # username=$(ssh -G $ssh_or_mosh_args 2>/dev/null | awk '/^user / { print $2; exit }') # # shellcheck disable=SC2086 # [ -z "$username" ] && username=$(ssh $ssh_or_mosh_args -T -o ControlPath=none -o ProxyCommand="sh -c 'echo %%username%% %r >&2'" 2>&1 | awk '/^%username% / { print $2; exit }') +# # shellcheck disable=SC2086 # [ -z "$username" ] && username=$(ssh $ssh_or_mosh_args -v -T -o ControlPath=none -o ProxyCommand=false -o IdentityFile='%%username%%/%r' 2>&1 | awk '/%username%/ { print substr($4,12); exit }') # else # if ! _is_true "$ssh_only"; then