# -*- mode: sh; -*- export GOPATH="$HOME/projects/go" if [[ $defpath == "" ]] then defpath=($path) path=( $defpath ~/bin $GOPATH/bin ~/.cabal/bin ~/.composer/vendor/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 if [[ -d /usr/local/opt/pass/share/zsh/site-functions ]] then fpath=($fpath /usr/local/opt/pass/share/zsh/site-functions) fi export FPATH case $OSTYPE in *gnu*) os=gnu ;; freebsd*) os=freebsd ;; darwin*) os=osx esac export os if [[ -f $ZDOTDIR/zshenv.local ]] then . $ZDOTDIR/zshenv.local fi if [[ -f $ZDOTDIR/zshenv.private ]] then . $ZDOTDIR/zshenv.private fi if [[ -s $commands[direnv] ]] then eval "$(direnv hook zsh)" fi if [[ -s $commands[gpg-agent] ]] then envfile="$HOME/.gnupg/gpg-agent.env" if [[ -e "$envfile" ]] && kill -0 $(grep GPG_AGENT_INFO "$envfile" | cut -d: -f 2) 2>/dev/null; then eval "$(cat "$envfile")" else eval "$(gpg-agent --daemon --enable-ssh-support --write-env-file "$envfile")" fi export GPG_AGENT_INFO # the env file does not contain the export statement export SSH_AUTH_SOCK # enable gpg-agent for ssh fi