# -*- mode: sh; -*- export GOPATH="$HOME/projects/go" if [[ $defpath == "" ]] then defpath=($path) path=( $defpath ~/bin $GOPATH/bin ~/.cabal/bin ) fi export PATH myfuncs=( $ZDOTDIR/functions/*(/) ) fpath=( $myfuncs $ZDOTDIR/completion/ $fpath ) if [[ -d /usr/local/share/zsh-completions ]] then fpath=(/usr/local/share/zsh-completions $fpath) fi if [[ -d /usr/local/share/zsh/site-functions ]] then fpath=(/usr/local/share/zsh/site-functions $fpath) fi export FPATH case $OSTYPE in *gnu*) os=gnu ;; freebsd*) os=freebsd ;; darwin*) os=osx esac export os if [[ -s $commands[direnv] ]] then eval "$(direnv hook zsh)" fi if [[ $os == gnu && ! -S $SSH_AUTH_SOCK && -s $commands[envoy] ]] then envoy -t gpg-agent eval $(envoy -p) fi