#!bash
#
# virtualenvwrapper initialization.

export VIRTUALENV_DISTRIBUTE=1
export VIRTUAL_ENV_DISABLE_PROMPT=1

__garbage VENVWRAPPERSH
VENVWRAPPERSH=$(type -P virtualenvwrapper.sh /usr/local/bin/virtualenvwrapper.sh | head -1)

if [[ -n "$VENVWRAPPERSH" ]]; then
  if [[ -z "$WORKON_HOME" ]]; then
    export WORKON_HOME="$HOME/.virtualenvs"
  else
    # Make sure the directory is in a format compatible with the shell.
    export WORKON_HOME="$(cd "$WORKON_HOME" && pwd)"
  fi
  source "$VENVWRAPPERSH"
fi

#!bash
#
# virtualenvwrapper initialization.

export VIRTUALENV_DISTRIBUTE=1
export VIRTUAL_ENV_DISABLE_PROMPT=1

__garbage VENVWRAPPERSH
VENVWRAPPERSH=$(type -P virtualenvwrapper.sh /usr/local/bin/virtualenvwrapper.sh | head -1)

if [[ -n "$VENVWRAPPERSH" && -z "$WORKON_HOME" ]]; then
  export WORKON_HOME="$HOME/.virtualenvs"
  source "$VENVWRAPPERSH"
fi

--- 
+++ 
@@ -8,12 +8,7 @@
 __garbage VENVWRAPPERSH
 VENVWRAPPERSH=$(type -P virtualenvwrapper.sh /usr/local/bin/virtualenvwrapper.sh | head -1)
 
-if [[ -n "$VENVWRAPPERSH" ]]; then
-  if [[ -z "$WORKON_HOME" ]]; then
-    export WORKON_HOME="$HOME/.virtualenvs"
-  else
-    # Make sure the directory is in a format compatible with the shell.
-    export WORKON_HOME="$(cd "$WORKON_HOME" && pwd)"
-  fi
+if [[ -n "$VENVWRAPPERSH" && -z "$WORKON_HOME" ]]; then
+  export WORKON_HOME="$HOME/.virtualenvs"
   source "$VENVWRAPPERSH"
 fi
Set WORKON_HOME only if it hasn't already been set.

If WORKON_HOME has been set, export it in a format compatible with the
shell (translating Windows paths to the format used by MSYS).
