Skip to content

Commit

Permalink
python: use pure's magic value for VIRTUAL_ENV_DISABLE_PROMPT
Browse files Browse the repository at this point in the history
  • Loading branch information
belak committed Sep 28, 2018
1 parent fbcae35 commit ee885d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/python/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ if (( $+VIRTUALENVWRAPPER_VIRTUALENV || $+commands[virtualenv] )) && \
# Set the directory where virtual environments are stored.
export WORKON_HOME="${WORKON_HOME:-$HOME/.virtualenvs}"

# Disable the virtualenv prompt.
export VIRTUAL_ENV_DISABLE_PROMPT=1
# Disable the virtualenv prompt. Note that we use the magic value used by the
# pure prompt because there's some additional logic in that prompt which tries
# to figure out if a user set this variable and disable the python portion of
# that prompt based on it which is the exact opposite of what we want to do.
export VIRTUAL_ENV_DISABLE_PROMPT=12

# Create a sorted array of available virtualenv related 'pyenv' commands to
# look for plugins of interest. Scanning shell '$path' isn't enough as they
Expand Down

0 comments on commit ee885d4

Please sign in to comment.