From 8d26ff82dc680d32c4d613f39981817c039de9d5 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 12 Aug 2019 15:19:14 +1200 Subject: [PATCH 1/1] add utility aliases for zsh --- .zsh/zshrc/parts.d/50-ssh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zsh/zshrc/parts.d/50-ssh b/.zsh/zshrc/parts.d/50-ssh index 647dd9e..772a426 100644 --- a/.zsh/zshrc/parts.d/50-ssh +++ b/.zsh/zshrc/parts.d/50-ssh @@ -16,4 +16,9 @@ if [ -r $HOME/.ssh/known_hosts ]; then unset _myhosts fi +alias rrsh='() { ssh "${@:-}" -t /bin/su - }' +compdef rrsh=ssh + +alias kssh='rm -vf -- $VARDIR/ssh/ssh_control_*(=as-60Y1omN)' + # vim:ft=zsh -- 2.39.5