# Eryn Wells <eryn@erynwells.me>

autoload binary_exists
autoload homebrew-prefix

function init_rc_fpath_darwin
{
    if binary_exists brew; then
        local brew_fpath="$(homebrew-prefix)/share/zsh/site-functions"
        if [[ -d "$brew_fpath" ]]; then
            fpath+=($brew_fpath)
        fi

        export FPATH
    fi
}

init_rc_fpath_darwin "$@"
