1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 02:19:25 +00:00

Added conda virtualenv support to python module. (#1505)

* Added conda virtualenv support to python module
* Added instructions for Python module options to README

Thanks to @egpbos for the original feature and @ickc for fixing the merge conflicts.
This commit is contained in:
ickc
2017-11-12 16:20:52 -08:00
committed by Kaleb Elwert
parent ce349dff81
commit 96bbb31cc8
3 changed files with 35 additions and 0 deletions

View File

@ -4,6 +4,7 @@
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
# Sebastian Wiesner <lunaryorn@googlemail.com>
# Patrick Bos <egpbos@gmail.com>
#
# Load manually installed pyenv into the shell session.
@ -144,6 +145,19 @@ if (( $#commands[(i)pip(|[23])] )); then
unset cache_file pip_command
fi
# Load conda into the shell session, if requested
zstyle -T ':prezto:module:python' conda-init
if (( $? && $+commands[conda] )); then
if (( $(conda ..changeps1) )); then
echo "To make sure Conda doesn't change your prompt (should do that in the prompt module) run:\n conda config --set changeps1 false"
# TODO:
# We could just run this ourselves. In an exit hook
# (add zsh-hook zshexit [(anonymous) function]) we could then set it back
# to the way it was before we changed it. However, I'm not sure if this is
# exception safe, so left it like this for now.
fi
fi
#
# Aliases
#