add POWERLEVEL9K_VIRTUALENV_SHOW_VERSION option to virtualenv segment#821
add POWERLEVEL9K_VIRTUALENV_SHOW_VERSION option to virtualenv segment#821iilonmasc wants to merge 1 commit intoPowerlevel9k:nextfrom
POWERLEVEL9K_VIRTUALENV_SHOW_VERSION option to virtualenv segment#821Conversation
|
Thanks @sambadevi for this PR! To be honest, I am a bit ambivalent with this PR. On one hand 👍 for creativity (I personally never thought about rendering another segment within one). |
|
So @dritter your suggestion is creating a new segment I'd like to stay with this functionality tbh, my intention wasn't to add a new segment just for the python version but to show the python version only if I am in a virtualenv (because I am using both, python2 and 3 in different virtualenvs). |
|
For the records: The successor of #771 is merged and it is possible to define own conditions for every segment. The condition should look like this |
|
Per @dritter, the project's structure is completely changed in the |
|
I am closing this PR and will port this change to the new structure in |
As discussed in #808
This PR adds a new option to the
virtualenvsegment.If you add
POWERLEVEL9K_VIRTUALENV_SHOW_VERSION=trueto your.zshrcp9k will add your python version to your venv segmentIt looks like this:


Using Python2
Using Python3
Thanks @hiimdoublej for suggesting this!