Change to _command_exists helper
This commit is contained in:
committed by
Piotr Rogoża
parent
d79db3b7e3
commit
a9d75c12a0
@@ -1,9 +1,9 @@
|
|||||||
# make sure virtualenvwrapper is enabled if available
|
# make sure virtualenvwrapper is enabled if available
|
||||||
|
|
||||||
cite about-plugin
|
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
|
pyenv virtualenvwrapper
|
||||||
else
|
else
|
||||||
[[ `which virtualenvwrapper.sh` ]] && . virtualenvwrapper.sh
|
[[ `which virtualenvwrapper.sh` ]] && . virtualenvwrapper.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user