More comprehensive pacman aliasing

This commit is contained in:
Sage Vaillancourt 2023-12-17 17:33:59 -05:00
parent 2d72952634
commit db0b37329d
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,11 @@
#!/bin/bash #!/bin/bash
if command -v yay &> /dev/null; then 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 fi
function ishelp { function ishelp {
@ -136,7 +140,6 @@ alias apt-get="sudo apt-get"
alias eject="sudo eject" alias eject="sudo eject"
alias dpkg="sudo dpkg" alias dpkg="sudo dpkg"
alias dpi="sudo dpkg -i" alias dpi="sudo dpkg -i"
alias pacman="sudo pacman"
alias systemctl="sudo systemctl" alias systemctl="sudo systemctl"
alias python="python3" alias python="python3"