From: martin f. krafft Date: Mon, 12 Aug 2019 22:44:34 +0000 (+1200) Subject: use a function, not an alias to anon function X-Git-Url: https://git.madduck.net/etc/ssh.git/commitdiff_plain/3bf6f0a97128a150976cafb771a09caf42df5db4 use a function, not an alias to anon function --- diff --git a/.zsh/zshrc/parts.d/50-ssh b/.zsh/zshrc/parts.d/50-ssh index 772a426..98f730d 100644 --- a/.zsh/zshrc/parts.d/50-ssh +++ b/.zsh/zshrc/parts.d/50-ssh @@ -16,7 +16,7 @@ if [ -r $HOME/.ssh/known_hosts ]; then unset _myhosts fi -alias rrsh='() { ssh "${@:-}" -t /bin/su - }' +rrsh() { ssh "${@:-}" -t /bin/su - } compdef rrsh=ssh alias kssh='rm -vf -- $VARDIR/ssh/ssh_control_*(=as-60Y1omN)'