X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/8720834f4554b2e565a4aff40a2856f3f759a822..7172209258bdbb25ba4d43eba17f50d72719bf75:/base/.zshenv diff --git a/base/.zshenv b/base/.zshenv index cae4b34..1809f47 100644 --- a/base/.zshenv +++ b/base/.zshenv @@ -17,9 +17,12 @@ export XDG_CONFIG_DIRS=~/.config:/usr/pkg/etc/xdg:/usr/local/etc/xdg:/etc/xdg export XDG_DATA_HOME=~/share export XDG_DATA_DIRS=~/.local/share:/usr/pkg/share:/usr/local/share:/usr/share export XDG_CACHE_HOME=~/tmp +export XDG_RUNTIME_DIR=~/tmp ### applications export PYTHONSTARTUP=~/.pythonrc +## perl +(( ${+commands[perl]} )) && eval $(perl -I $XDG_DATA_HOME/perl5/lib/perl5 -Mlocal::lib=$XDG_DATA_HOME/perl5) ### freebsd if [[ "$OSTYPE" =~ "^freebsd" ]]; then @@ -28,6 +31,7 @@ if [[ "$OSTYPE" =~ "^freebsd" ]]; then fi ### load site-specific -if [[ -f ~/.zshenv.local ]]; then +if [[ -e "~/.zshenv.local" ]] && [[ ! -v _ZSHENV_LOADED ]] { + export _ZSHENV_LOADED= source ~/.zshenv.local -fi +}