if [[ $SHLVL -eq 1 || -n $DISPLAY ]] then if [[ -f $ZDOTDIR/zshenv.local ]] then . $ZDOTDIR/zshenv.local fi if [[ -f $ZDOTDIR/zshenv.private ]] then . $ZDOTDIR/zshenv.private fi if [[ -z $SSH_AUTH_SOCK ]] then export SSH_AUTH_SOCK=${XDG_RUNTIME_DIR:-/run/user/$UID}/ssh-agent fi if [[ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]] then . $HOME/.nix-profile/etc/profile.d/nix.sh; fi case $OSTYPE in darwin*) os=darwin ;; linux-gnu) os=linux ;; freebsd*) os=freebsd ;; *) os=unknown ;; esac if [[ $os == "linux" ]] then read osrelease < /proc/sys/kernel/osrelease if [[ $osrelease =~ Microsoft$ ]] then export windows=1 umask 002 fi fi case $MACHTYPE in *64) arch=amd64 ;; *) arch=386 ;; esac if [[ ${path[(I)$HOME/.local/bin ]} ]] then path+=($HOME/.local/bin) fi if [[ ${path[(I)$HOME/go/bin ]} ]] then path+=($HOME/go/bin) fi export GTAGSCONF=~/.globalrc export GTAGSLABEL=ctags export GHQ_ROOT="$HOME/projects:$HOME/go/src" fi