We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d8eafdd + 51a0978 commit f42295eCopy full SHA for f42295e
plugins/available/virtualenv.plugin.bash
@@ -5,11 +5,14 @@
5
cite about-plugin
6
about-plugin 'virtualenvwrapper and pyenv-virtualenvwrapper helper functions'
7
8
-if _command_exists pyenv; then
+# Check for whole command instead of just pyenv
9
+if [ -n "$(command pyenv virtualenvwrapper --help 2> /dev/null)" ]; then
10
pyenv virtualenvwrapper
11
elif _command_exists virtualenvwrapper.sh; then
12
# shellcheck disable=SC1091
13
source virtualenvwrapper.sh
14
+else
15
+ _log_debug "${2:-'virtualenvwrapper' was not found}"
16
fi
17
18
function mkvenv {
0 commit comments