tarjoilija / zgen

A lightweight and simple plugin manager for ZSH
BSD 2-Clause "Simplified" License
1.5k stars 99 forks source link

Failed to load multiple zsh-files in single repo #93

Open denysdovhan opened 7 years ago

denysdovhan commented 7 years ago

I'm trying to load pure zsh-theme. It contains two primary files with different extensions:

The problem is that with these checkings, zgen finds only pure.plugin.zsh and loads only this file, without async.zsh. It jumps in this condition and ignores all of following ones:

# ... L364-L366
 elif -zgen-path-contains "${location}" ".plugin.zsh" ; then
        for script (${location}/*\.plugin\.zsh(N)) -zgen-source "${script}"
# ...

That's why I get this in my init.zsh:

# ...
source "/Users/denysdovhan/.zgen/sindresorhus/pure-master/pure.plugin.zsh"
# ...

# ...
star-szr commented 4 years ago

I know this is an old issue but for cases like this, from my understanding and testing you can do something like the following:

zgen load sindresorhus/pure async.zsh
zgen load sindresorhus/pure

Or use upstream zsh-async like some of the options documented at https://github.com/sindresorhus/pure#integration:

zgen load mafredri/zsh-async
zgen load sindresorhus/pure