-case "`uname`" in *BSD*)
- mkdir -m 700 "/tmp/home-$LOGNAME" > /dev/null 2>&1
- unlink "$HOME/tmp" > /dev/null 2>&1
- ln -sFh "/tmp/home-$LOGNAME" "$HOME/tmp";;
-esac
+### exports
+## reset PATH to prevent /etc/zprofile from changing it
+# some distros put non-interactive PATH in env and interactive PATH in profile;
+# we want to make sure to always use ours regardless
+if [[ -v _backup_path ]] {
+ path=("${_backup_path[@]}" "${path[@]}")
+ export PATH
+ unset _backup_path
+}
+## common
+export EDITOR=vim
+export PAGER=less
+## grep
+# XXX: deprecated in GNU
+export GREP_OPTIONS=--color=auto
+## histfile
+export HISTFILE=~/.histfile
+export HISTSIZE=1000
+export SAVEHIST=1000
+## python
+export PYTHONSTARTUP=~/.pythonrc
+## perl
+[[ -v commands[perl] ]] && eval $(perl -I $XDG_DATA_HOME/perl5/lib/perl5 -Mlocal::lib=$XDG_DATA_HOME/perl5 2>/dev/null)
+
+### load site-specific
+if [[ -f ~/.zprofile.local ]] { source ~/.zprofile.local }
+
+# vim: set et sts=4 sw=4 ts=8 tw=79 :