From db0b37329d31017a625792cc04d32b2f456c8c46 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 17 Dec 2023 17:33:59 -0500 Subject: [PATCH] More comprehensive pacman aliasing --- fake_home/.shell_aliases | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fake_home/.shell_aliases b/fake_home/.shell_aliases index a6ec763..f3f81d5 100755 --- a/fake_home/.shell_aliases +++ b/fake_home/.shell_aliases @@ -1,7 +1,11 @@ #!/bin/bash if command -v yay &> /dev/null; then - alias pacman="yay" + alias pacman="sudo yay" +elif command -v pikaur &> /dev/null; then + alias pacman="sudo pikaur" +else + alias pacman="sudo pacman" fi function ishelp { @@ -136,7 +140,6 @@ alias apt-get="sudo apt-get" alias eject="sudo eject" alias dpkg="sudo dpkg" alias dpi="sudo dpkg -i" -alias pacman="sudo pacman" alias systemctl="sudo systemctl" alias python="python3"