[bug]: zinit compile --all
operates on irrelevant files in $ZINIT[PLUGINS_DIR]
#156
Labels
bug
Something isn't working
Issue description
macOS creates .DS_Store files in directories opened with finder. If one is created in the zinit plugin directory,
${ZINIT[PLUGINS_DIR]}
, the commandzinit compile --all
treats .DS_Store as a plugin. This occurs because of the following line inzinit-autoload.zsh
:2332: plugins=( "${ZINIT[PLUGINS_DIR]}"/*(DN) )
If we add
/
to the glob qualifiers, files in the plugin directory won't be added to the plugins variable. I quickly checked to see if this construct is used anywhere else and found a few similar constructs:This should probably be made consistent but I am unsure if the
-
should be included or not. I also did not do a thorough search, so there may be others I missed.zinit config
zinit version or commit ID
98d3eaa
zsh version
5.8
host info
OSTYPE=darwin20.0 CPUTYPE=x86_64 MACHTYPE=x86_64
The text was updated successfully, but these errors were encountered: