Skip to content

Instantly share code, notes, and snippets.

@oyvindio
Created August 2, 2010 11:12
Show Gist options
  • Save oyvindio/504490 to your computer and use it in GitHub Desktop.
Save oyvindio/504490 to your computer and use it in GitHub Desktop.
Put active virtualenv in bash prompt, now with colors
#!/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