add a script to hook source activate for Anaconda/Miniconda (#103)

This commit is contained in:
Yamashita, Yuu
2015-11-06 04:16:14 +00:00
parent e489163f92
commit dfd1655069
3 changed files with 37 additions and 2 deletions

7
shims/activate Executable file
View 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