diff --git a/rc/bashrc b/rc/bashrc index 846eb74a..b238ea8a 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -444,8 +444,11 @@ alias less="less -R " # "su -" with/without sudo. Conflicts with SailfishOS, to learn to use sui # instead. -alias ssu="sudo -i" +if ! hash ssu 2> /dev/null; then + alias ssu="echo 'No.'" +fi alias sui="sudo -i" +alias sudoi="sudo -i" #alias suu="su -" # systemd runlevels/targets diff --git a/rc/zshrc b/rc/zshrc index d63be5a1..0da4acf1 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -437,8 +437,11 @@ alias less="less -R " # "su -" with/without sudo. Conflicts with SailfishOS, to learn to use sui # instead. -alias ssu="sudo -i" +if ! hash ssu 2> /dev/null; then + alias ssu="echo 'No.'" +fi alias sui="sudo -i" +alias sudoi="sudo -i" #alias suu="su -" # Who command which I use with Conky