if [[ $defpath == "" && -d ~/bin ]] then defpath=($path) path=( $defpath ~/bin ) if [[ -d ~/.gem/ruby/*/bin ]] then path=( $path ~/.gem/ruby/*/bin ) fi fi export PATH myfuncs=( ~/projects/dotfiles/zsh/functions/*(/) ) fpath=( $myfuncs ~/projects/dotfiles/zsh/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 [[ $commands[direnv] ]] eval "$(direnv hook zsh)" fi