aboutsummaryrefslogtreecommitdiff
path: root/zsh/appearance.zsh
diff options
context:
space:
mode:
authorMatt Singleton <matt@datadoghq.com>2013-03-18 02:09:37 -0400
committerMatt Singleton <matt@datadoghq.com>2013-03-18 02:09:37 -0400
commit6688afe37fedd872590f814c0f5daaeaf5e2fa56 (patch)
treeb4e84f01f3543c293873e7587d32c7441141ef9a /zsh/appearance.zsh
parent582b368961529ccfc02a52853379406907718367 (diff)
virtualenvwrapper stuff
Diffstat (limited to 'zsh/appearance.zsh')
-rw-r--r--zsh/appearance.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/zsh/appearance.zsh b/zsh/appearance.zsh
index f60ddc4..2f6cc0f 100644
--- a/zsh/appearance.zsh
+++ b/zsh/appearance.zsh
@@ -69,8 +69,8 @@ function prompt_char {
# virtualenv
function ve_prompt_info {
- if [[ $IN_VIRTUALENV == "true" ]]; then
- echo "%{$fg[green]%}℘ %{$reset_color%}"
+ if [ -n "$VIRTUAL_ENV" ]; then
+ echo "(%{$fg[green]%}$(basename $VIRTUAL_ENV)%{$reset_color%}) "
fi
}