# include any of the below dirs there, but you never know what crazy shit
# people will do. I rather handle them sanely with our own code than let
# them override after the fact.
- [[ -e $XDG_CONFIG_HOME/user-dirs.dirs ]] &&
+ [[ -f $XDG_CONFIG_HOME/user-dirs.dirs ]] &&
emulate sh -c "source $XDG_CONFIG_HOME/user-dirs.dirs"
typeset -UT XDG_DATA_DIRS xdg_data_dirs
eval $(perl -I$XDG_DATA_HOME/perl5/lib/perl5 \
-Mlocal::lib=$XDG_DATA_HOME/perl5 2>/dev/null)
+## go
+if [[ -v commands[go] ]] {
+ [[ ! -v GOPATH ]] && export GOPATH=${XDG_DATA_HOME:-~/.local/share}/go:~/go
+ [[ ! -v GOBIN ]] && export GOBIN=~/.local/bin
+}
+
### load zshenv site-specific
autoload -Uz load-site-dotfile
load-site-dotfile zshenv