-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Allow multiple plugins from one repository #86
Comments
Technically me, Chris , or any other zap cantributor, could work on this feature but I think this leads to a "side effect": this addition will grow the codebase making the concept of zap "less minimal". For now a workaround could be to clone your repo somewhere and then put the following lines in you ". zshrc" for plugin in path_to_repo/*; do
plug "path_to_repo/$plugin"
done In these way zap should source all the plugins in that directory but you'll need to manually clone it on your system and if you want to exclude a plugin you have to remove/move that plugin, and maybe you'll need to delete all "non plugin" files/folders to avoid unexpected behaviours @ChristianChiarulli what do you think about it? |
Is this a common convention implemented by other plugin managers and often implemented for plugins? |
Not sure that it is a common convention but there are other plugin managers such as 'zplug' which have tags that could cater for this scenario. |
Hi there!
Currently
zap
tends you to create repository for each plugin you need. It's OK for some kind of public plugins but when you develop your own config usually you want to put all plugins in one place. In this case it would be nice to have a command that allows to "bundle" all plugins from the repository. For example, I have a repo with files:And somewhere in the
.zshrc
I just simply write:… bundle "username/zap-config" …
And all these plugins should be sourced.
Also (I'm not sure if we can do it in bash) additionally it would be nice to have an option that can skip one or more plugins from the repo. For example, in my current repo I have two plugins for prompt and for my home machine I want to use only
my-home-prompt.plugin.zsh
by excludingmy-work-prompt.plugin.zsh
like this:The reason because we should add "exclude" instead of some kind of white/black lists is that "Zap is a minimal zsh plugin manager" and we should expect the default behavior as it is without any complex side effects.
The text was updated successfully, but these errors were encountered: