Use $AURDIR and $CUSTOMDIR instead of hardcoding paths

This commit is contained in:
Eric Torres 2024-08-03 13:31:18 -07:00
parent 220b4eab9a
commit f8ff39ad93
2 changed files with 7 additions and 2 deletions

View File

@ -40,8 +40,8 @@ alias -g updatemirrors="reflector --verbose --country 'United States' --latest 2
# ========== Packaging ==========
# Arch Linux
alias aurcache='cd ${XDG_CACHE_HOME}/aurutils/sync'
alias aurdir='cd /var/cache/pacman/aur'
alias customdir='cd /var/cache/pacman/custom'
alias aurdir='cd "$AURDIR"'
alias customdir='cd "$CUSTOMDIR"'
alias gpkginit='cp /usr/share/pacman/PKGBUILD-vcs.proto ./PKGBUILD'
alias pkginit='cp /usr/share/pacman/PKGBUILD.proto ./PKGBUILD'
alias pa='makepkg --force --clean --cleanbuild --syncdeps --rmdeps && addpkg aur'

View File

@ -33,3 +33,8 @@ export AUR_PAGER="ranger"
# Disable debug messages for wine
export WINEDEBUG='-all'
# Paths
_PACMAN_CACHE='/var/cache/pacman'
export AURDIR="$_PACMAN_CACHE/aur"
export CUSTOMDIR="$_PACMAN_CACHE/custom"