-
Notifications
You must be signed in to change notification settings - Fork 153
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 virtual env support #37
base: master
Are you sure you want to change the base?
Conversation
why put it before the prompt instead of inside of the powerline? |
Just seemed like the done thing when I have had similar venv prompt indicators before... Would be easy too just to add it as a segment, I guess, but would need to somehow very clearly separate it from the other indicators (git etc.) |
A Python segment would look separate from the Git segment if used a distinct color. See the available colors in the table. If the Python needs to be shown before the Git segment, this can be done via the number passed to the I think a Python segment would also need to have an option to only show up when there's a |
How about this then?
|
I wanted to add a plugin for virtualenv support which followed the convention of adding in [ ] before the prompt. To do this I needed to insert after the newline and before the lambda - the easiest way of doing this was to split the closePrompt function in two, so that plugins could be registered between.