plugins/virtualenv: use `_command_exists`
parent
c29eb16dfc
commit
ccd8b52e89
|
|
@ -1,3 +1,5 @@
|
||||||
|
# shellcheck shell=bash
|
||||||
|
#
|
||||||
# make sure virtualenvwrapper is enabled if available
|
# make sure virtualenvwrapper is enabled if available
|
||||||
|
|
||||||
cite about-plugin
|
cite about-plugin
|
||||||
|
|
@ -5,8 +7,8 @@ about-plugin 'virtualenvwrapper and pyenv-virtualenvwrapper helper functions'
|
||||||
|
|
||||||
if _command_exists pyenv; then
|
if _command_exists pyenv; then
|
||||||
pyenv virtualenvwrapper
|
pyenv virtualenvwrapper
|
||||||
else
|
elif _command_exists virtualenvwrapper.sh; then
|
||||||
[[ `which virtualenvwrapper.sh` ]] && . virtualenvwrapper.sh
|
source virtualenvwrapper.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue