geometry-zsh / geometry

geometry is a minimal, fully customizable and composable zsh prompt theme
ISC License
920 stars 94 forks source link

Add a note about setting var. when using antigen #172

Closed zapashcanon closed 6 years ago

zapashcanon commented 7 years ago

Hi,

Something like:

. /usr/share/zsh-antigen/antigen.zsh

GEOMETRY_SYMBOL_PROMPT="λ"

antigen use oh-my-zsh
antigen theme frmendes/geometry

won't work. But:

GEOMETRY_SYMBOL_PROMPT="λ"

. /usr/share/zsh-antigen/antigen.zsh

antigen use oh-my-zsh
antigen theme frmendes/geometry

is ok. So, I just added a note about it.

frm commented 7 years ago

Hi!

Thanks for this. Before merging, are you sure this just applies to antigen? Wouldn't it be similar in zplug (iirc)?

zapashcanon commented 7 years ago

I don't use/know zplug, so can't help here, sorry !

desyncr commented 7 years ago

It may be too specific to the plugin manager but I don't see too much of a trouble with adding it. 👍

frm commented 7 years ago

Oh, yeah, I'm up for merging! I was just wondering if we should change it to be broader, without even specifying a package manager. As an example: "(...) you should set them before loading the theme in your package manager (e.g. antigen)"

desyncr commented 7 years ago

Agree on that point.

zapashcanon commented 7 years ago

The fact is that it's not just about loading the theme in the package manager. In my first example, I kinda set them before loading the theme with the package manager but it doesn't work.

desyncr commented 7 years ago

@zapashcanon Can you clarify what works and what doesn't work?

I'm up for merging but text needs to be reworked in a generic way (example above is OK).

zapashcanon commented 7 years ago

It's very clear in my first post, no ?

You must set env. var. before loading antigen. Loading them before antigen theme frmendes/geometry is not enough.

desyncr commented 7 years ago

@zapashcanon What wasn't clear was your previous comment. Otherwise I wouldn't ask.

zapashcanon commented 7 years ago

Hum ok. It was just another way to explain what's in the first post.

frm commented 7 years ago

Any updates on this?

zapashcanon commented 7 years ago

It's not really about setting them before loading the theme. (This is already in the README).

It's about setting them before "loading" the package manager. Sourcing antigen.zsh for antigen e.g., but I don't know how other package manager are loaded/work, so it may not be the case.

desyncr commented 6 years ago

@zapashcanon This seems to be an issue with this particular package manager rather than with geometry itself.

We think geometry should be agnostic to a package manager. It adds various install methods in its README.md but just as a convenience.

frm commented 6 years ago

@desyncr yeah, but if it affects users we might as well add in that information. It's not a big deal and it can avoid issues in the future for anyone who tries to install it.

Although I just noticed it's kinda lost in the middle of the README. I'd rephrase it and put it in the antigen specific section. What do you think?

frm commented 6 years ago

@zapashcanon can you take a look at my last comment?

desyncr commented 6 years ago

@fribmendes @zapashcanon The issue with Antigen is resolved so this gotcha is not necessary anymore.

frm commented 6 years ago

Should we close this then? @desyncr

desyncr commented 6 years ago

Yes. Thanks @zapashcanon for the work. It's currently solved in Antigen itself.