mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 10:28:00 +00:00
support skip-virtualenvwrapper-init zstyle in python module to avoid auto-sourcing of virtualenvwrapper.sh
This commit is contained in:
parent
53bd555c6d
commit
7629171239
@ -34,8 +34,9 @@ if (( ! $+commands[python] && ! $+commands[pyenv] )); then
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Load virtualenvwrapper into the shell session.
|
# Load virtualenvwrapper into the shell session, unless requested not to
|
||||||
if (( $+commands[virtualenvwrapper.sh] )); then
|
zstyle -t ':prezto:module:python' skip-virtualenvwrapper-init
|
||||||
|
if (( $? && $+commands[virtualenvwrapper.sh] )); then
|
||||||
# Set the directory where virtual environments are stored.
|
# Set the directory where virtual environments are stored.
|
||||||
export WORKON_HOME="$HOME/.virtualenvs"
|
export WORKON_HOME="$HOME/.virtualenvs"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user