Added yay check
This commit is contained in:
parent
02867aa246
commit
fc1c304fdc
@ -18,6 +18,19 @@ case "$ID" in
|
|||||||
alias burn='sudo apt-get autoremove'
|
alias burn='sudo apt-get autoremove'
|
||||||
;;
|
;;
|
||||||
arch|archlinux)
|
arch|archlinux)
|
||||||
|
# Check if yay is installed
|
||||||
|
if command -v yay >/dev/null 2>&1; then
|
||||||
|
# Install something bypassing the prompts
|
||||||
|
alias inst='yay -S --noconfirm'
|
||||||
|
# Do a basic update
|
||||||
|
alias update='yay -Syu --noconfirm'
|
||||||
|
# Upgrade everything
|
||||||
|
alias upgrade_all='yay -Syu --noconfirm && yay -Rns $(pacman -Qdtq) --noconfirm && sudo paccache -r'
|
||||||
|
# Search packages
|
||||||
|
alias pacs='yay -Ss'
|
||||||
|
# Uninstall
|
||||||
|
alias burn='yay -Rns --noconfirm'
|
||||||
|
else
|
||||||
# Install something bypassing the prompts
|
# Install something bypassing the prompts
|
||||||
alias inst='sudo pacman -S --noconfirm'
|
alias inst='sudo pacman -S --noconfirm'
|
||||||
# Do a basic update
|
# Do a basic update
|
||||||
@ -28,6 +41,7 @@ case "$ID" in
|
|||||||
alias pacs='pacman -Ss'
|
alias pacs='pacman -Ss'
|
||||||
# Uninstall
|
# Uninstall
|
||||||
alias burn='sudo pacman -Rns --noconfirm'
|
alias burn='sudo pacman -Rns --noconfirm'
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
alpine)
|
alpine)
|
||||||
# Install something bypassing the prompts
|
# Install something bypassing the prompts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user