]> git.sev.monster Git - dotfiles.git/blobdiff - base/.zshenv
fix .zshrc, pa, spa; rename prompt to arrows
[dotfiles.git] / base / .zshenv
index 7a5982f2ee2e0fd45c9885ea097255c4df5c95de..1809f47b900231ab9b2a36cbdd773e5e10f2df61 100644 (file)
@@ -22,7 +22,7 @@ export XDG_RUNTIME_DIR=~/tmp
 ### applications
 export PYTHONSTARTUP=~/.pythonrc
 ## perl
-eval $(perl -I $XDG_DATA_HOME/perl5/lib/perl5 -Mlocal::lib=$XDG_DATA_HOME/perl5)
+(( ${+commands[perl]} )) && eval $(perl -I $XDG_DATA_HOME/perl5/lib/perl5 -Mlocal::lib=$XDG_DATA_HOME/perl5)
 
 ### freebsd
 if [[ "$OSTYPE" =~ "^freebsd" ]]; then
@@ -31,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
 }
This page took 0.030865 seconds and 4 git commands to generate.