From: martin f. krafft Date: Sun, 29 Mar 2020 20:03:00 +0000 (+1300) Subject: need to eval the ssh command X-Git-Url: https://git.madduck.net/etc/ssh.git/commitdiff_plain/7e489083bc0d1328c7db1b1bbf036e31c0f98ea4?ds=inline need to eval the ssh command --- diff --git a/.zsh/zshrc/parts.d/50-ssh b/.zsh/zshrc/parts.d/50-ssh index 335f5f3..4e37508 100644 --- a/.zsh/zshrc/parts.d/50-ssh +++ b/.zsh/zshrc/parts.d/50-ssh @@ -21,7 +21,7 @@ _ssh_proxy() { cmd="$1"; shift sshopts="${*%%--*}"; sshopts="${sshopts%% }" cmdopts="${*#$sshopts}"; cmdopts="${cmdopts#*-- }" - ssh $sshopts -t $cmd $cmdopts + eval ssh $sshopts -t $cmd $cmdopts } alias rrsh='_ssh_proxy "su -"'