r/backtickbot • • Jul 27 '21

https://np.reddit.com/r/voidlinux/comments/oh36jw/rate_my_aliases/h6nx243/

i agree with others about them interfering with xtools, this is what i use btw:

# arch-based
if test -x "`command -v 'pacman'`"; then
    alias \
        pkgf='pacman -Ss' \
        pkgi="sudo pacman --needed -Suy 'pacman' && sudo pacman -S" \
        pkgr='sudo pacman -Rns' \
        pkgu="sudo pacman --needed -Suy 'pacman' && sudo pacman -Suyy"

# void
elif test -x "`command -v 'xbps-install'`"; then
    alias \
        pkgf='xbps-query' \
        pkgi="sudo xbps-install -S 'xbps' && sudo xbps-install -S" \
        pkgr='sudo xbps-remove -Rf' \
        pkgu="sudo xbps-install -S 'xbps' && sudo xbps-install -Su"
fi
1 Upvotes

0 comments sorted by