X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/54a85d6c6744df54af2c092234ba84baacdc5ebc..72de94eb3a1c15c6bafb17ef874a08254b6d9767:/etc/zsh/.zprofile diff --git a/etc/zsh/.zprofile b/etc/zsh/.zprofile index 9b93f41..d9c05b3 100644 --- a/etc/zsh/.zprofile +++ b/etc/zsh/.zprofile @@ -79,9 +79,7 @@ if [[ ! -v _sev_setup_path || -o login ]] { # XXX: XDG specifies ~/.local/bin as the only user-writable dir for # executables, but we specify more; technically this is against spec syspath=("$path[@]") - path=(~/{.local/,}{s,}bin - {~/.local,{$PREFIX,}{,/opt,/usr{,/local,pkg}}}/sbin - {~/.local,{$PREFIX,}{,/opt,/usr{,/local,pkg}}}/bin + path=({{${_sev_home:-~},~}{/.local,},{$PREFIX,}{,/opt,/usr{,/local,/pkg}}}/{s,}bin /usr/{X11R{7,6}/bin,games}) ((len=$#path)) path=("$path[@]" "$syspath[@]") @@ -197,7 +195,9 @@ if [[ ! -v _sev_setup_xdg ]] { mkdir -m760 ~/.local/state } - if [[ ! -v XDG_CACHE_HOME ]] { + if [[ -v XDG_CACHE_HOME ]] { + export XDG_CACHE_HOME + } else { if [[ -v _sev_tmp ]] { export XDG_CACHE_HOME=$_sev_tmp/.xdg.cache [[ -e $XDG_CACHE_HOME ]] || mkdir -m700 $XDG_CACHE_HOME