Skip to content

Instantly share code, notes, and snippets.

@initialkommit
Created May 22, 2018 14:11
Show Gist options
  • Save initialkommit/36f4caca28f57a875362943b86effb62 to your computer and use it in GitHub Desktop.
Save initialkommit/36f4caca28f57a875362943b86effb62 to your computer and use it in GitHub Desktop.
virtualenv postactivate/postdeactivate
PS1="$_OLD_VIRTUAL_PS1"
_OLD_RPROMPT="$RPROMPT"
RPROMPT="%{${fg_bold[grey]}%}(%{${fg[grey]}%}`basename \"$VIRTUAL_ENV\"`%{${fg_bold[grey]}%})%{${reset_color}%} $RPROMPT"
RPROMPT="$_OLD_RPROMPT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment