From: martin f. krafft Date: Mon, 30 Mar 2020 04:37:39 +0000 (+1300) Subject: use sudo instead of su X-Git-Url: https://git.madduck.net/etc/ssh.git/commitdiff_plain/4d6632c9b8585576014e89b84c04628ef4bffd4b use sudo instead of su --- 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