Skip to content

Instantly share code, notes, and snippets.

@SakiiR
Last active January 8, 2022 16:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SakiiR/3a657dcb9e3ad5306ae908dc4d3ba67b to your computer and use it in GitHub Desktop.
Save SakiiR/3a657dcb9e3ad5306ae908dc4d3ba67b to your computer and use it in GitHub Desktop.
Prompt VirtualEnv Fish
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