feat(zsh): filter missing folders in path
This commit is contained in:
parent
4d39d0dd3e
commit
1ab3859b82
15
.zshrc
15
.zshrc
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user