Git Product home page Git Product logo

Comments (4)

sharat87 avatar sharat87 commented on May 22, 2024

Hi Charlie,

No problem, keep them coming :)

This is currently not possible with antigen. The URL and loc arguments
to antigen-bundle should combine and make up a directory for antigen
to make sense out of it.

Another detail is that copying/symlinking the used bundles in the
bundle directory is gone. Plugins are loaded directly from the correct
clone in the repos directory.

The implication of the above is that, you can't add just a few select
completion files to your environment. The way completions are loaded
is by adding a directory with completion files to the $fpath
variable. So when we add the zsh-completions directory to this, we get
all the completions loaded.

I didn't support this because I don't see any real need for it. Why
would you want to load only one completion? If its for performance,
then you don't really need to worry, because the antigen-apply
caches them. I have an improvement in mind for that function to be
even faster in the future (it's in a TODO comment).

Hope this answers your concerns. Please feel free to open an issue if
you want to discuss anything.

Shrikant Sharat Kandula, on his iPad.

On 10-Jun-2012, at 5:56 AM, Charlie Tanksley
[email protected]
wrote:

Hi again. :)

I'd like to install some completions from https://github.com/zsh-users/zsh-completions. I guess I could just install them all, but I only want some of them, so I thought I could use antigen to install them. Maybe I'm wrong about that?

Here is what my .zshrc looks like:

   source ~/.zsh/antigen/antigen.zsh

   antigen-bundle heroku
   antigen-bundle brew
   antigen-bundle gem
   antigen-bundle zsh-users/zsh-completions.git bundle # one I care about and am not getting

   # Syntax highlighting bundle.
   antigen-bundle zsh-users/zsh-syntax-highlighting

   antigen-apply

All those install just fine, save for the zsh-users one. When I open a new tab I get this message:

   ls: /Users/<user>/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-completions/bundle: No such file or directory
   ls: /Users/<user>/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-completions/bundle: No such file or directory

Instead of bundle I've tried _bundle, /bundle, and _bundle. When I look in .antigen I don't see the bundle directory/symlink in the .antigen/bundles directory, though it does show up in the proper repository in .antigen/repos.

Is this a use case for antigen? If so, am I doing something wrong? Thanks in advance, and sorry keep hitting you with the issues. :)


Reply to this email directly or view it on GitHub:
#3

from antigen.

sharat87 avatar sharat87 commented on May 22, 2024

Closing as I don't see a reason as of now to do this. You can just as well add all the available completions, and because of the way the completions cache works, you should rarely see a performance impact for this.

However, if we do have a good reason to support this, I am happy to reopen this.

from antigen.

charlietanksley avatar charlietanksley commented on May 22, 2024

This is a great answer. Thanks.

Just to be clear, here's how I understand (part of) what you said: antigen will work to install non-oh-my-zsh stuff, but only if you point it at a directory. So if I did

antigen-bundle someuser/somerepo.git path/to/directory

That would install whatever is at path/to/directory. Is that right? Will it work if I just do

antigen-bundle zsh-users/zsh-completions.git

(Without any directory, just wanting to install the whole thing.)

I hate having multiple git repositories I have to remember to keep up to date and would like to be able to do all this through antigen, but I'm not sure if that is what antigen is for.

from antigen.

sharat87 avatar sharat87 commented on May 22, 2024

Yes, that is correct. With that line, you should have your
zsh-completions loaded and ready to use.

From what I understand from your last paragraph, yes you can and are
encouraged to use repositories other than oh-my-zsh for your shell
plugins.

I hoped this was clear in the docs. If you feel this isn't as clear as
it should be, can you suggest what can be added. Documentation is a
very important item in my priority list, more than reliability :).

Shrikant Sharat Kandula, on his iPad.

On 10-Jun-2012, at 8:16 PM, Charlie Tanksley
[email protected]
wrote:

This is a great answer. Thanks.

Just to be clear, here's how I understand (part of) what you said: antigen will work to install non-oh-my-zsh stuff, but only if you point it at a directory. So if I did

antigen-bundle someuser/somerepo.git path/to/directory

That would install whatever is at path/to/directory. Is that right? Will it work if I just do

antigen-bundle zsh-users/zsh-completions.git

(Without any directory, just wanting to install the whole thing.)

I hate having multiple git repositories I have to remember to keep up to date and would like to be able to do all this through antigen, but I'm not sure if that is what antigen is for.


Reply to this email directly or view it on GitHub:
#3 (comment)

from antigen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.