feat(zsh): filter missing folders in path

This commit is contained in:
Michel 2024-11-05 10:07:48 +01:00
parent 4d39d0dd3e
commit 1ab3859b82

15
.zshrc
View File

@ -26,23 +26,22 @@ bindkey -A viins main
### Path
###
# Use 'nullglob' and "bi[n]" to filter missing folders
setopt nullglob
path=(
$HOME/bin
$HOME/dev_local/bin
$HOME/.local/bin
$HOME/.local/*/bin
$HOME/go/bin
$HOME{,/dev_local,/.local,/.local/*,/go}/bi[n]
/opt/*/bin
$path)
setopt nonullglob
fpath=(
$fpath
/opt/zsh/site-functions
/usr/share/zsh/site-functions
/opt/zsh/site-function[s]
/usr/share/zsh/site-function[s]
)
setopt nonullglob
# Remove duplicates
typeset -U path fpath