]> git.sev.monster Git - dotfiles.git/blobdiff - base/.zshenv
do not hardcode /tmp in .zprofile
[dotfiles.git] / base / .zshenv
index cae4b34b246a4d09f9d188fdfb04bb2bc931f99c..1809f47b900231ab9b2a36cbdd773e5e10f2df61 100644 (file)
@@ -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_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
 
 ### 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
 
 ### freebsd
 if [[ "$OSTYPE" =~ "^freebsd" ]]; then
@@ -28,6 +31,7 @@ if [[ "$OSTYPE" =~ "^freebsd" ]]; then
 fi
 
 ### load site-specific
 fi
 
 ### load site-specific
-if [[ -f ~/.zshenv.local ]]; then
+if [[ -e "~/.zshenv.local" ]] && [[ ! -v _ZSHENV_LOADED ]] {
+       export _ZSHENV_LOADED=
        source ~/.zshenv.local
        source ~/.zshenv.local
-fi
+}
This page took 0.033625 seconds and 4 git commands to generate.