X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/428dfc35e0fe5a733a42eabe2d9a48f4a28d7a6b..4f4710136460159118320a2c2a5e1515746e52ac:/base/.zshenv diff --git a/base/.zshenv b/base/.zshenv index 6ab4a58..1809f47 100644 --- a/base/.zshenv +++ b/base/.zshenv @@ -21,6 +21,8 @@ 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 @@ -29,6 +31,7 @@ if [[ "$OSTYPE" =~ "^freebsd" ]]; then fi ### load site-specific -if [[ -f ~/.zshenv.local ]] { +if [[ -e "~/.zshenv.local" ]] && [[ ! -v _ZSHENV_LOADED ]] { + export _ZSHENV_LOADED= source ~/.zshenv.local }