-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 Poetry support to virtualenv #2450
base: master
Are you sure you want to change the base?
Commits on Oct 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ffc1f17 - Browse repository at this point
Copy the full SHA ffc1f17View commit details -
Add Poetry support to virtualenv
Heavily based on romkatv#1994. Integrate Poetry virtualenv detection into the existing virtualenv segment. For poetry virtualenvs, use the package name as reported by `poetry version`.
Configuration menu - View commit details
-
Copy full SHA for e3e5605 - Browse repository at this point
Copy the full SHA e3e5605View commit details -
Remove POWERLEVEL9K_VIRTUALENV_ENABLE_POETRY
Added for debugging purposes.
Configuration menu - View commit details
-
Copy full SHA for a79a934 - Browse repository at this point
Copy the full SHA a79a934View commit details -
Fix up function return value passing
Don't use echo, instead set a variable which the calling function checks. This is the standard in p10, presumably because it's faster..?
Configuration menu - View commit details
-
Copy full SHA for e162e2a - Browse repository at this point
Copy the full SHA e162e2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for db4b650 - Browse repository at this point
Copy the full SHA db4b650View commit details -
Configuration menu - View commit details
-
Copy full SHA for c10e62a - Browse repository at this point
Copy the full SHA c10e62aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 414c330 - Browse repository at this point
Copy the full SHA 414c330View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8608896 - Browse repository at this point
Copy the full SHA 8608896View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe9b9f9 - Browse repository at this point
Copy the full SHA fe9b9f9View commit details -
Fix POWERLEVEL9K_VIRTUALENV_SHOW_WITH_PYENV=if-different (I think)
We were comparing virtualenv's name to pyenv's version, which would never be the same. Now this setting works as intended, although I'm not sure how useful it is. It's probably more useful to reorder this logic so virtualenv has precedence.
Configuration menu - View commit details
-
Copy full SHA for 893e130 - Browse repository at this point
Copy the full SHA 893e130View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e835be - Browse repository at this point
Copy the full SHA 7e835beView commit details -
virtualenv: Handle not being in a virtualenv
Pre-Poetry support, we only entered this codepath when we were inside a virtualenv. Now we enter it for every directory, but we don't want to display an empty segment for non-virtualenv locations.
Configuration menu - View commit details
-
Copy full SHA for f2772bd - Browse repository at this point
Copy the full SHA f2772bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81c474c - Browse repository at this point
Copy the full SHA 81c474cView commit details