Skip to content

Instantly share code, notes, and snippets.

@kennethlove
Created April 27, 2012 21:18
Show Gist options
  • Save kennethlove/2513310 to your computer and use it in GitHub Desktop.
Save kennethlove/2513310 to your computer and use it in GitHub Desktop.
!/bin/bash
# This hook is run after every virtualenv is activated.
PS1="$_OLD_VIRTUAL_PS1"
_OLD_RPROMPT="$RPROMPT"
# RPROMPT="%{${fg_bold[white]}%}(env: %{${fg[green]}%}`basename \"$VIRTUAL_ENV\"`%{${fg_bold[white]}%})%{${reset_color}%}"
RPROMPT='%{$reset_color%}%{$fg[white]%}⮂%{$fg[black]$bg[white]%} `basename "$VIRTUAL_ENV"` %{$fg[black]%}⮂%{$fg[white]$bg[black]%} %t %{$reset_color%}'
#!/bin/bash
# This hook is run after every virtualenv is deactivated.
RPROMPT=""
RPROMPT='%{$reset_color%}%{$fg[white]%}⮂%{$fg[black]$bg_bold[white]%} %t %{$reset_color%}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment