Skip to content

Commit

Permalink
updated _username() in when the ssh client doesn't support %r in Prox…
Browse files Browse the repository at this point in the history
…yCommand (2)

disabled SC2086 violation

SC2086 (info): Double quote to prevent globbing and word splitting
  • Loading branch information
gpakosz committed Mar 5, 2023
1 parent 3994ce3 commit 1f5a064
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f5a064

Please sign in to comment.