Last active
January 8, 2022 16:52
-
-
Save SakiiR/3a657dcb9e3ad5306ae908dc4d3ba67b to your computer and use it in GitHub Desktop.
Prompt VirtualEnv Fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function prompt_virtual_env -d "Display Python virtual environment" | |
if test "$VIRTUAL_ENV" | |
prompt_segment white black (eval (echo $VIRTUAL_ENV/bin/python --version) 2>&1 | sed 's/Python /Py|/g') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment