Commits

Xunzhen Quan  committed 75d24b7

Use $_VIRTUALENVWRAPPER_API instead of listing functions.

  • Participants
  • Parent commits 61749bc

Comments (0)

Files changed (1)

File virtualenvwrapper_lazy.sh

 # Set up completion functions to virtualenvwrapper_load
 function virtualenvwrapper_setup_lazy_completion {
     if [ -n "$BASH" ] ; then
-        complete -o nospace -F virtualenvwrapper_load cdvirtualenv cdsitepackages workon rmvirtualenv cpvirtualenv showvirtualenv
+        complete -o nospace -F virtualenvwrapper_load $(echo ${_VIRTUALENVWRAPPER_API})
     elif [ -n "$ZSH_VERSION" ] ; then
-        compctl -K virtualenvwrapper_load cdvirtualenv cdsitepackages workon rmvirtualenv cpvirtualenv showvirtualenv
+        compctl -K virtualenvwrapper_load $(echo ${_VIRTUALENVWRAPPER_API})
     fi
 }