Comments (4)
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.
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.
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.
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 doantigen-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)
- Lots of ^Ms HOT 1
- Is this project dead? HOT 22
- ADOTDIR where is it used? HOT 1
- Doc in Quick start about antigen bundle is wrong
- Where does the Debian package put antigen.zsh? HOT 2
- Can you add this website? HOT 1
- can't write zwc file HOT 1
- use antigen to install plugins in an env that has no internet
- `antigen init` fails generating cache when path includes spaces HOT 2
- there is a typo error in wiki page HOT 1
- Any plugin or script using bashcompinit & complete to define completion won't work after sourcing antigen HOT 4
- [feature request] New command which automatically purges / disables not explicit listed plugins
- $ADOTDIR not working
- no such keymap menuselect HOT 2
- no such file or directory HOT 3
- oh-my-zsh tmux plugin does not work when using antigen
- ZSH theme not working in VSCode Dev container Integrated Terminal HOT 1
- Dead Links in 'In the wild' section of the wiki
- Cannot change directories without `cd`
- Issue with sourcing zshrc after antigen install : bad substitution HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antigen.