Skip to content

Instantly share code, notes, and snippets.

@chrisma
Created June 6, 2018 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisma/babc0b3e563de367665806f4395b9830 to your computer and use it in GitHub Desktop.
Save chrisma/babc0b3e563de367665806f4395b9830 to your computer and use it in GitHub Desktop.
postactivate script to show current Python version in virtualenv
#!/usr/bin/zsh
# This hook is sourced after this virtualenv is activated.
echo $fg_bold[green] $(python --version)
echo $fg_bold[green] $(which python)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment