We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f32d31 commit 0f04dcfCopy full SHA for 0f04dcf
virtualenvwrapper.sh
@@ -291,12 +291,6 @@ virtualenvwrapper_show_workon_options () {
291
# (cd "$WORKON_HOME"; find -L . -depth 3 -path '*/bin/activate') | sed 's|^\./||' | sed 's|/bin/activate||' | sort
292
}
293
294
-
295
-# test if a given command exists
296
-command_exists () {
297
- command -v "$1" &> /dev/null ;
298
-}
299
300
_lsvirtualenv_usage () {
301
echo "lsvirtualenv [-blh]"
302
echo " -b -- brief mode"
@@ -310,7 +304,7 @@ _lsvirtualenv_usage () {
310
304
lsvirtualenv () {
311
305
312
306
typeset long_mode=true
313
- if command_exists getopts
307
+ if command -v "getopts" &> /dev/null
314
308
then
315
309
# Use getopts when possible
316
OPTIND=1
0 commit comments