Change to _command_exists helper

pull/1168/head
Yukino Song 2018-04-11 14:59:56 +08:00 committed by GitHub
parent 0b73975d04
commit fa266e9b0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# make sure virtualenvwrapper is enabled if available
cite about-plugin
about-plugin 'virtualenvwrapper helper functions'
about-plugin 'virtualenvwrapper and pyenv-virtualenvwrapper helper functions'
if [[ `command -v pyenv` ]]; then
if _command_exists pyenv; then
pyenv virtualenvwrapper
else
[[ `which virtualenvwrapper.sh` ]] && . virtualenvwrapper.sh