-
Notifications
You must be signed in to change notification settings - Fork 588
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
Add python virtualenv segment #11
Conversation
f0d9c61
to
1ba0aa1
Compare
1ba0aa1
to
e2371ec
Compare
I've just tested this on OS X and it works great. |
@agnoster any chance of merging this in? |
Just FYI, the style for the other prompt segments is to leave one space on either side of the text, which this doesn't seem to do - but I don't use virtual env so won't bother me ;-) |
Or... actually looks like the code does include spaces but it doesn't look right in the screenshot. |
it does :) The screenshot is out of date! |
Should I add something to the README about this? |
are you using |
@MichaelAquilina the tool? yes, the zsh plugin? no. Should I? |
@tutuca could you link to a gist of your If you are using antigen for example, it would be in the path: if you are not sure where it is, use
|
My agnoster which is the version included in oh-my-zsh, found on |
For some reason your |
Maybe the version didn't make it yet into oh-my-zsh... |
no the version in |
|
try setting that to 1 |
What does the output of |
Also, the prompt is in the wrong location :/ I dont know what is being done there. I wonder if someone just created an alternate implementation and never noticed this one has been updated. |
|
I am using CONDA to manage my environment. When activating an environment, |
I am not familiar with CONDA, but I suspect it wouldnt be hard to get working with a patch. When you activate an environment, is there an env variable that specifies what your virtualenv is pointing to? |
Following version of
It is not optimal, because it has what I consider too much spacing before and after the environment's name. |
I would open a PR with that to this repo if I were you :) |
@MichaelAquilina It seems like there's one ready... #24 |
Displays the current python virtualenv in a segment if the
$VIRTUAL_ENV
environment variable is set.