]> arthur.barton.de Git - ax-zsh.git/blob - core/05_fpath/05_fpath.zshrc
Fix handling of legacy terminal types
[ax-zsh.git] / core / 05_fpath / 05_fpath.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # 05_fpath.zshrc: Setup AX-ZSH "fpath"
3
4 typeset -xTU AXZSH_FPATH axzsh_fpath 2>/dev/null
5
6 # Search for additional ZSH function paths: lower priority than plugins
7 for dir (
8         /usr/local/share/zsh/site-functions(N)
9         /usr/share/zsh/site-functions(N)
10 ); do
11                 [[ -d "$dir" ]] && axzsh_fpath=($axzsh_fpath "$dir")
12 done
13
14 # Add current "fpath" to axzsh_fpath
15 axzsh_fpath=($axzsh_fpath $fpath)
16
17 # Search for additional ZSH function paths: higher priority than plugins
18 for dir (
19         $HOME/.config/zsh/functions(N)
20         $HOME/.zsh/functions(N)
21 ); do
22         [[ -d "$dir" ]] && axzsh_fpath=("$dir" $axzsh_fpath)
23 done
24
25 # Set ZSH "fpath" from axzsh_fpath (which is exported to subshells)
26 fpath=($axzsh_fpath)