1. Xunzhen Quan
  2. virtualenvwrapper

Commits

Xunzhen Quan  committed dcfa5d3

Add complete-time load to lazy loader.

  • Participants
  • Parent commits ccd4e48
  • Branches default

Comments (0)

Files changed (1)

File virtualenvwrapper_lazy.sh

View file
 	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