Skip to content
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

Doubts #3

Closed
Quarknova opened this issue Jun 15, 2014 · 16 comments
Closed

Doubts #3

Quarknova opened this issue Jun 15, 2014 · 16 comments

Comments

@Quarknova
Copy link

Hello.

I learned about your project antigen-hs and followed all the instructions on github to install it but right now I have some doubt about how to use it properly.

For instance I'd like to use sindresorhus/pure zsh prompt but adding "bundle "sindresorhus/pure" and recompiling i get the error "No *.plugin.zsh file". Of course there in no .plugin.zsh file in that repository, bit instead a .zsh file that should be loaded. Am I doing something wrong? Should I do anything before adding this plugin to MyAntigen.hs? Or this is not supported at all? (Can you help me to set it up somehow!?)

What is the relationship of antigen-hs with antigen? I mean, in MyAntigen.hs I can use the same command supported by antigen? For instance if I put in my zshrc the environment variable ANTIGEN_DEFAULT_REPO_URL=sorin-ionescu/prezto will MyAntigen.hs read it? Does antigen-hs support the command "theme" and "use" if I use them in MyAntigen.hs? (tried but didn't worked). If not, how can I load zsh themes?

How can I load modules of Prezto (such as git, osx, homebrew...)? Is it supported at all? Or you suggest oh-my-zsh? Or none of the two?

Sorry for all this questions but I can't find documentation about your project and I'd really be happy to use it!

Please help!

Thank you very much.

@Tarrasch
Copy link
Owner

You're doing it the right way, I just wanted antigen-hs to be assertive about how a zsh-plugin should look like. The pure plugin isn't following the standard, but I tried to fix this upstream just now: sindresorhus/pure#73

Alternatively you can use my version of pure which I think is much better because I've removed all the unpure parts of it. I try to keep it up to date.

As for themes, that was just a stupid and bloated feature of antigen that never should have been there. I would suggest none of prezto nor oh-my-zsh since they are just a bundle of plugins, I think you should just put the plugins you like from them inside their own seperate repositories. I know it can be a bit hard to leave them, but I did it back in a commit (Tarrasch/dotfiles@e788487 and some others) and I've not changed my mind since. I'm free from plugins that does a lot of magic. Everything is tidy and explicit in my ~/.zsh folder now.

In general the relationship between antigen-hs and antigen is that antigen-hs can achieve 100% of antigen if the user is just willing to spend some time doing things right (like not using plugin bundles like oh-my-zsh). In reward they don't need to use software that is bloated. To be fair, many (including my good github friend @sharat87) might want to say that antigen is more featureful/convenient, not bloated. I'll let you choose side yourself. :)

@Tarrasch
Copy link
Owner

And of course, thanks for going this far in using this plugin (even though it is in Haskell :)). Were the installation steps good? And thanks for opening this ticket. :)

Tarrasch added a commit that referenced this issue Jun 15, 2014
Might answer some question that gave rise to #3
@Tarrasch
Copy link
Owner

I added a link to my own MyAntigen.hs in the readme now! :)

@Quarknova
Copy link
Author

Thanks to you very much. Incredibly fast to reply and solve the problems! Now I better understood the aim of the project! Instructions were absolutely ok, just wasn't completely clear (to me at least) the relationship with antigen. And the way to personalise MyAntigen.sh file (what is supported and what is not). I'd suggest to be more precise for the newcomers like me! Best luck!

@sharat87
Copy link

I think the project needs an FAQ, with questions from OP :)

As for pure not following the standard, you have to realize the standard
isn't much of a 'standard'. It's just a convention followed by oh-my-zsh
and I think the world can do without another standard. That said, pure is a
theme, not a plugin. So, as per oh-my-zsh way of doing things, it should be
'pure.zsh-theme' or something (sorry, on phone).

Shrikant Sharat Kandula

On 16-Jun-2014, at 3:37 am, Quarknova [email protected] wrote:

Thanks to you very much. Incredibly fast to reply and solve the problems!
Now I better understood the aim of the project! Instructions were
absolutely ok, just wasn't completely clear (to me at least) the
relationship with antigen. And the way to personalise MyAntigen.sh file
(what is supported and what is not). I'd suggest to be more precise for the
newcomers like me! Best luck!

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

@Tarrasch
Copy link
Owner

@Quarknova, @sharat87, Absolutely, this project definitely needs a FAQ! I opened #4 for this.

@sharat87, what is the rationale for having themes? Was it just to be make it convenient to import the themes from oh-my-zsh? Cause I just find another special way to load themes to be a bad idea, since the different command name antigen theme vs antigen bundle makes it sound like the commands are more different than that.

@sharat87
Copy link

I didn't think of any rationale. I just wanted antigen to work with
anything people would throw at it. I didn't want people to have to write
their scripts in a particular way for it to work with antigen. It was
oh-my-zsh that separated theme files and plugin files and I just went with
it.

The theme command exists to make it explicit to the reader that the command
is about loading a theme. Sure, you could write a comment revealing that
but, good code is better than good comments right? ;)

You're right however in that (almost?) all invocations of antigen theme
command can be replaced with an appropriate antigen bundle command. The
theme command actually did used to do a lot more in the very initial days
of antigen, IIRC.

:shrikant-sharat (m +91 98674 888_42_)

On Mon, Jun 16, 2014 at 10:05 AM, Arash Rouhani [email protected]
wrote:

@Quarknova https://github.com/Quarknova, @sharat87
https://github.com/sharat87, Absolutely, this project definitely needs
a FAQ! I opened #4 #4 for
this.

@sharat87 https://github.com/sharat87, what is the rationale for having
themes? Was it just to be make it convenient to import the themes from
oh-my-zsh? Cause I just find another special way to load themes to be a bad
idea, since the different command name antigen theme vs antigen bundle
makes it sound like the commands are more different than that.

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

@Tarrasch
Copy link
Owner

Ah cool. I'm happy to hear this, it feels like antigen and antigen-hs can thrive on their own since they approaching the same issue (plugins for the zsh shell) in different ways.

@Quarknova
Copy link
Author

Installed your version of pure but there should be something wrong since this is the result:
screen shot 2014-06-16 at 10 30 09

Any suggestion?

@Tarrasch
Copy link
Owner

Yes, you need to put setopt prompt_subst in your .zshrc. Hmm, do you not have the same issue with regular pure?

@Quarknova
Copy link
Author

Could't try the regular one but guess would have been the same. Now it works like a charm!! Thank you so much.
Maybe you can also help me setting correctly Tomorrow-Night-Theme on vim:
I use iTerm2 and vim (no gui) with the chriskempson/tomorrow-theme', specifically the Tomorrow-Night-Blue theme, and the result is the following:

screen shot 2014-06-16 at 19 07 45
screen shot 2014-06-16 at 19 07 17

In vim I set background=dark
Thanks again and sorry if I keep bothering you!

@Tarrasch
Copy link
Owner

Hmm, I've not used that theme, so I don't know. I use solarized with gnome-terminal on Ubuntu :)

By the way, if you find antigen-hs useful, please feel free to star it here on github ^^

Tarrasch added a commit that referenced this issue Jun 22, 2014
This closes #4 and relates to #3
@Tarrasch
Copy link
Owner

Hi @Quarknova , I updated the README with a FAQ. Do you feel it covers most of the questions you had?

How have it been using antigen-hs now? Did you find it useful and a joy to play around with? :)

@Quarknova
Copy link
Author

Absolutely. Hope antigen-he will gain popularity in the near future! Is there any way (apart rm) to clean up repos unused?

@Tarrasch
Copy link
Owner

Nope, I kind of wanted to keep it really minimal, I mean it's easier to remember how to do rm -rf ~/.antigen-hs/repos/REPO than some antigen-specific commands.

@Tarrasch
Copy link
Owner

I hope you've found this plugin enjoyable. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants