X-Git-Url: https://git.madduck.net/etc/ssh.git/blobdiff_plain/1fa53ea94c453ef12f3fbf238d740f4914367d40..4d6632c9b8585576014e89b84c04628ef4bffd4b:/.zsh/zshrc/parts.d/50-ssh?ds=sidebyside

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