From 4d6632c9b8585576014e89b84c04628ef4bffd4b Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 30 Mar 2020 17:37:39 +1300 Subject: [PATCH 1/1] use sudo instead of su --- .zsh/zshrc/parts.d/50-ssh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.zsh/zshrc/parts.d/50-ssh b/.zsh/zshrc/parts.d/50-ssh index 0e6e62c..1d840eb 100644 --- a/.zsh/zshrc/parts.d/50-ssh +++ b/.zsh/zshrc/parts.d/50-ssh @@ -26,13 +26,13 @@ _ssh_proxy() { } # need functions instead of aliases for completion -rrsh() { _ssh_proxy "su -" "$@" } +rrsh() { _ssh_proxy "sudo -i" "$@" } compdef rrsh=ssh ttsh() { _ssh_proxy "tmux last" "$@" } compdef ttsh=ssh -rtsh() { _ssh_proxy "tmux new su -" "$@" } +rtsh() { _ssh_proxy "tmux new sudo -i" "$@" } compdef rtsh=ssh local SOCKDIR=$VARDIR/ssh -- 2.39.5