Commits

Doug Hellmann committed 9fb54f3

enable tab completion for showvirtualenv; fixes #78

Comments (0)

Files changed (2)

docs/en/history.rst

     :ref:`VIRTUALENVWRAPPER_LOG_DIR
     <variable-VIRTUALENVWRAPPER_LOG_DIR>` variables to control the
     locations of hooks and logs.
+  - Enabled tab completion for :ref:`command-showvirtualenv`
+    (:bbissue:`78`).
 
 2.6.3
 

virtualenvwrapper.sh

         COMPREPLY=( $(compgen -W "`virtualenvwrapper_show_workon_options`" -- ${cur}) )
     }
 
+
     _cdvirtualenv_complete ()
     {
         local cur="$2"
     complete -o default -o nospace -F _virtualenvs workon
     complete -o default -o nospace -F _virtualenvs rmvirtualenv
     complete -o default -o nospace -F _virtualenvs cpvirtualenv
+    complete -o default -o nospace -F _virtualenvs showvirtualenv
 elif [ -n "$ZSH_VERSION" ] ; then
-    compctl -g "`virtualenvwrapper_show_workon_options`" workon rmvirtualenv cpvirtualenv
+    compctl -g "`virtualenvwrapper_show_workon_options`" workon rmvirtualenv cpvirtualenv showvirtualenv
 fi
 
 # Prints the Python version string for the current interpreter.