zsh-linux: only set autoremove alias in Arch

This commit is contained in:
Eric Torres 2024-09-09 22:30:40 -07:00
parent 6f421ec8df
commit 9f8a1c9f50

View File

@ -28,7 +28,7 @@ alias gr='git reset'
#========= Package Management =========
# Arch Linux
alias aurget='aur sync -d aur --chroot'
alias -g autoremove='pacman -Rns $(pacman -Qtdq)'
[[ -x $(which pacman) ]] && alias -g autoremove='pacman -Rns $(pacman -Qtdq)'
alias checkaurupdates='aur sync -d aur --upgrades --chroot'
# alias does not work correctly for some reason
alias lspkg="pacman -Qi | awk '/^Name/{name=$3} /^Installed Size/{print $4$5, name}' | sort -h"