mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 20:57:59 +00:00
python: use pure's magic value for VIRTUAL_ENV_DISABLE_PROMPT
Fixes #1627
This commit is contained in:
parent
fbcae356d3
commit
ee885d42de
@ -93,8 +93,11 @@ if (( $+VIRTUALENVWRAPPER_VIRTUALENV || $+commands[virtualenv] )) && \
|
|||||||
# Set the directory where virtual environments are stored.
|
# Set the directory where virtual environments are stored.
|
||||||
export WORKON_HOME="${WORKON_HOME:-$HOME/.virtualenvs}"
|
export WORKON_HOME="${WORKON_HOME:-$HOME/.virtualenvs}"
|
||||||
|
|
||||||
# Disable the virtualenv prompt.
|
# Disable the virtualenv prompt. Note that we use the magic value used by the
|
||||||
export VIRTUAL_ENV_DISABLE_PROMPT=1
|
# 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
|
# Create a sorted array of available virtualenv related 'pyenv' commands to
|
||||||
# look for plugins of interest. Scanning shell '$path' isn't enough as they
|
# look for plugins of interest. Scanning shell '$path' isn't enough as they
|
||||||
|
Loading…
Reference in New Issue
Block a user