Commits

Xunzhen Quan  committed 61749bc

Add complete-time load to lazy loader.

  • Participants
  • Parent commits 05549fe

Comments (0)

Files changed (1)

File virtualenvwrapper_lazy.sh

 	done
 }
 
+# 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
+    elif [ -n "$ZSH_VERSION" ] ; then
+        compctl -K virtualenvwrapper_load cdvirtualenv cdsitepackages workon rmvirtualenv cpvirtualenv showvirtualenv
+    fi
+}
+
 virtualenvwrapper_setup_lazy_loader
+virtualenvwrapper_setup_lazy_completion