1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # 05_fpath.zshrc: Setup AX-ZSH "fpath"
4 typeset -xTU AXZSH_FPATH axzsh_fpath 2>/dev/null
6 # Search for additional ZSH function paths: lower priority than plugins
8 /usr/local/share/zsh/site-functions(N)
9 /usr/share/zsh/site-functions(N)
11 [[ -d "$dir" ]] && axzsh_fpath=($axzsh_fpath "$dir")
14 # Add current "fpath" to axzsh_fpath
15 axzsh_fpath=($axzsh_fpath $fpath)
17 # Search for additional ZSH function paths: higher priority than plugins
19 $HOME/.config/zsh/functions(N)
20 $HOME/.zsh/functions(N)
22 [[ -d "$dir" ]] && axzsh_fpath=("$dir" $axzsh_fpath)
25 # Set ZSH "fpath" from axzsh_fpath (which is exported to subshells)