-
-
Notifications
You must be signed in to change notification settings - Fork 38
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: it would be nice to have a Znap command to ask if a plugin is cloned #14
Comments
The canonical "Znap way" of doing this is to Why would you need to check in your |
I frequently log into new machines (Raspberry Pis, servers, virtual machines, etc.) and grab my dotfiles via git to setup my ZSH set up the way I prefer. I like having that all happen in one step. I also frequently switch branches in my ZSH config to experiment with new tools, and when I switch back to my main branch I prefer ZSH to self-heal by setting itself back up automatically without extra steps. Nearly every other ZSH plugin manager I've tried in the past (antibody, antigen, zgen, zplug, zinit) has this ability. |
You can now pass any of the URL forms that `znap clone` accepts to `znap prompt` or `znap source`, and they will call `znap clone` with it, before performing their own functions. Implements issue #14.
All right, it's there now. If you now do |
Fixes a bug mentioned in issue #14.
Whoops! Thanks for reporting. Should be fixed now. |
Maybe I'm thinking about this wrong and don't know the "znap way" of doing this, but currently I have code like this in my .zshrc:
It seems like that pattern might be better served with a convenience command within znap. One idea I had was adding an 'exists' subcommand.
Another option would be to revamp the
znap ls
command to not actuallyls
, but return a list that can be properly stored in a list.And, finally, perhaps an all-in-one-command would be another possibility:
# bundle does a clone if it has to, and sources the plugin znap bundle zsh-users/zsh-autosuggestions
Is there a canonical znap way to accomplish what I'm doing, or is there a feature we can get added to znap to achieve this better?
The text was updated successfully, but these errors were encountered: