Commits

Doug Hellmann committed 9e47241 Merge

merge Add complete-time load to lazy loader

  • Participants
  • Parent commits f1db8cd, 83199de

Comments (0)

Files changed (2)

docs/source/history.rst

 Release History
 ===============
 
+dev
+
+  - Improve tab-completion support for users of the lazy-loading
+    mode. (:bbuser:`upsuper`)
+
 3.6.1
 
   - Replace realpath with a more portable way of converting a relative

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 $(echo ${_VIRTUALENVWRAPPER_API})
+    elif [ -n "$ZSH_VERSION" ] ; then
+        compctl -K virtualenvwrapper_load $(echo ${_VIRTUALENVWRAPPER_API})
+    fi
+}
+
 virtualenvwrapper_setup_lazy_loader
+virtualenvwrapper_setup_lazy_completion