From 3bf6f0a97128a150976cafb771a09caf42df5db4 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 13 Aug 2019 10:44:34 +1200 Subject: [PATCH] use a function, not an alias to anon function --- .zsh/zshrc/parts.d/50-ssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)' -- 2.39.5