Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Make python virtualenv configurable. #345

Closed
wants to merge 1 commit into from

Conversation

MarvinTeichmann
Copy link

The powerline virtualenv prompt can now be displayed using the following Variables:

set_default POWERLEVEL9K_VIRTUALENV_LEFT_DELIMITER "("
set_default POWERLEVEL9K_VIRTUALENV_RIGHT_DELIMITER ")"
set_default POWERLEVEL9K_VIRTUALENV_BGCOLOR "$DEFAULT_COLOR"
set_default POWERLEVEL9K_VIRTUALENV_FGCOLOR "green"

The new defaults are chosen to resemble the standard virtualenv prompt configuration.
It is indented to be used with the following POWERLEVEL9K configuration:

POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(virtualenv context_joined dir rbenv vcs)

The powerline virtualenv prompt can now be displayed using the following Variables:

set_default POWERLEVEL9K_VIRTUALENV_LEFT_DELIMITER "("
set_default POWERLEVEL9K_VIRTUALENV_RIGHT_DELIMITER ")"
set_default POWERLEVEL9K_VIRTUALENV_BGCOLOR "$DEFAULT_COLOR"
set_default POWERLEVEL9K_VIRTUALENV_FGCOLOR "blue"

The new defaults are chosen to resemble the standard virtualenv prompt configuration.
It is indented to be used with the following POWERLEVEL9K configuration:

POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(virtualenv context_joined dir rbenv vcs)
@dritter
Copy link
Member

dritter commented Nov 28, 2016

Thank you very much @MarvinTeichmann

Two quick sidenotes:

There is no need to make the foreground and background colors variable. They already are. ;) You just need to set POWERLEVEL9K_VIRTUALENV_FOREGROUND='red' and POWERLEVEL9K_VIRTUALENV_BACKGROUND='green'..

And our development branch is next could you branch from there? That would be awesome!

@bhilburn
Copy link
Member

bhilburn commented Dec 5, 2016

Thanks so much for this PR, @MarvinTeichmann!

I would love to get this in for our next release. Let us know if you need any help incorporating @dritter's comments, above!

@bhilburn bhilburn added this to the Release v0.6.0 milestone Dec 5, 2016
@bhilburn bhilburn mentioned this pull request Jan 4, 2017
11 tasks
This was referenced Apr 7, 2017
@bhilburn
Copy link
Member

bhilburn commented May 2, 2017

Closing this one due to inactivity. Feel free to re-open if anyone wants to take it on!

@bhilburn bhilburn closed this May 2, 2017
MarvinTeichmann added a commit to MarvinTeichmann/powerlevel10k that referenced this pull request Jun 24, 2019
The virtualenv segment can now be configured using the following Variables:

set_default POWERLEVEL9K_VIRTUALENV_LEFT_DELIMITER "("
set_default POWERLEVEL9K_VIRTUALENV_RIGHT_DELIMITER ")"

The new defaults are chosen to resemble the standard virtualenv prompt configuration.
The variable names are choosen analogous to the anaconda segment.
This implements the Powerlevel9k/powerlevel9k#345 pr.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants