diff --git a/zsh-linux/.config/zsh-linux/00-linux-aliases.zsh b/zsh-linux/.config/zsh-linux/00-linux-aliases.zsh index 0cc93c9..4bbf2ca 100644 --- a/zsh-linux/.config/zsh-linux/00-linux-aliases.zsh +++ b/zsh-linux/.config/zsh-linux/00-linux-aliases.zsh @@ -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' diff --git a/zsh-linux/.config/zsh-linux/zshenv b/zsh-linux/.config/zsh-linux/zshenv index 3fa6c15..7e80689 100644 --- a/zsh-linux/.config/zsh-linux/zshenv +++ b/zsh-linux/.config/zsh-linux/zshenv @@ -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"