Skip to content

Instantly share code, notes, and snippets.

@duythinht
Created March 1, 2016 04:10
Show Gist options
  • Save duythinht/138eeb9e9661fe2ce49f to your computer and use it in GitHub Desktop.
Save duythinht/138eeb9e9661fe2ce49f to your computer and use it in GitHub Desktop.
.virtualenvs/postactivate
#!/bin/zsh
# This hook is sourced after every virtualenv is activated.
PS1="$_OLD_VIRTUAL_PS1"
_OLD_RPROMPT="$RPROMPT"
RPROMPT="%{${fg_bold[white]}%}「 %{${fg[green]}%}`basename \"$VIRTUAL_ENV\"`%{${fg_bold[white]}%} 」%{${reset_color}%}$RPROMPT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment