Skip to content

Commit

Permalink
Export VIRTUAL_ENV_DISABLE_PROMPT when enabling virutalenv
Browse files Browse the repository at this point in the history
Adding `export` ensures the define is available in the shell so pyenv
or virtualenvwrapper do not duplicate the virtualenv name on the
prompt.
  • Loading branch information
cmcginty authored and belak committed May 1, 2018
1 parent f8f93d4 commit 6e179f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/python/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ if (( $+VIRTUALENVWRAPPER_VIRTUALENV || $+commands[virtualenv] )) && \
export WORKON_HOME="${WORKON_HOME:-$HOME/.virtualenvs}"

# Disable the virtualenv prompt.
VIRTUAL_ENV_DISABLE_PROMPT=1
export VIRTUAL_ENV_DISABLE_PROMPT=1

# 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 6e179f2

Please sign in to comment.