Add support for pyenv-virtualenv

This commit is contained in:
Yukino Song
2018-04-10 17:12:22 +08:00
committed by GitHub
parent 260e1851ef
commit 0b73975d04

View File

@@ -3,7 +3,11 @@
cite about-plugin
about-plugin 'virtualenvwrapper helper functions'
[[ `which virtualenvwrapper.sh` ]] && . virtualenvwrapper.sh
if [[ `command -v pyenv` ]]; then
pyenv virtualenvwrapper
else
[[ `which virtualenvwrapper.sh` ]] && . virtualenvwrapper.sh
fi
function mkvenv {