Created
March 13, 2013 17:24
-
-
Save tomviner/5154278 to your computer and use it in GitHub Desktop.
Bash prompt colours, including coping with venvs
This file contains hidden or 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
# colours are from http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html | |
# in $WORKON_HOME/postactivate | |
PS1="(`basename $VIRTUAL_ENV`)$BASE_PS1" | |
# in $WORKON_HOME/postdeactivate | |
PS1=$BASE_PS1 | |
# in startup eg ~/.bashrc | |
BASE_PS1="\[\033[00m\]\[\033[1;36m\]\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\[\033[0m\]\$ " | |
PS1=$BASE_PS1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the madness I'm using:
GIves me something like: