Created
August 2, 2010 11:12
-
-
Save oyvindio/504490 to your computer and use it in GitHub Desktop.
Put active virtualenv in bash prompt, now with colors
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
#!/bin/bash | |
# This hook is run after every virtualenv is activated. | |
PS1="\e[0;32m(`basename \"$VIRTUAL_ENV\"`)\e[0m $_OLD_VIRTUAL_PS1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment