mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-17 16:03:42 -05:00
add a script to hook source activate for Anaconda/Miniconda (#103)
This commit is contained in:
7
shims/activate
Executable file
7
shims/activate
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
if [[ "$0" != "${BASH_SOURCE}" ]]; then
|
||||
eval "$(pyenv sh-activate --verbose "$@" || true)"
|
||||
else
|
||||
echo "pyenv-virtualenv: activate must be sourced. Run 'source activate envname' instead of 'activate envname'" 1>&2
|
||||
false
|
||||
fi
|
||||
Reference in New Issue
Block a user