From 6688afe37fedd872590f814c0f5daaeaf5e2fa56 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Mon, 18 Mar 2013 02:09:37 -0400 Subject: virtualenvwrapper stuff --- zsh/appearance.zsh | 4 ++-- zsh/behavior.zsh | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'zsh') 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 } diff --git a/zsh/behavior.zsh b/zsh/behavior.zsh index b305c91..2ce396a 100644 --- a/zsh/behavior.zsh +++ b/zsh/behavior.zsh @@ -54,3 +54,10 @@ case "$TERM" in } ;; esac + +# +# virtualenv + +export VIRTUAL_ENV_DISABLE_PROMPT=true +export WORKON_HOME=~/.virtualenv/envs +source /usr/local/bin/virtualenvwrapper.sh -- cgit v1.2.3