Skip to content

Commit 9fb54f3

Browse files
committed
enable tab completion for showvirtualenv; fixes #78
1 parent 5938c37 commit 9fb54f3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/en/history.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ dev
2727
:ref:`VIRTUALENVWRAPPER_LOG_DIR
2828
<variable-VIRTUALENVWRAPPER_LOG_DIR>` variables to control the
2929
locations of hooks and logs.
30+
- Enabled tab completion for :ref:`command-showvirtualenv`
31+
(:bbissue:`78`).
3032

3133
2.6.3
3234

virtualenvwrapper.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ if [ -n "$BASH" ] ; then
411411
COMPREPLY=( $(compgen -W "`virtualenvwrapper_show_workon_options`" -- ${cur}) )
412412
}
413413

414+
414415
_cdvirtualenv_complete ()
415416
{
416417
local cur="$2"
@@ -427,8 +428,9 @@ if [ -n "$BASH" ] ; then
427428
complete -o default -o nospace -F _virtualenvs workon
428429
complete -o default -o nospace -F _virtualenvs rmvirtualenv
429430
complete -o default -o nospace -F _virtualenvs cpvirtualenv
431+
complete -o default -o nospace -F _virtualenvs showvirtualenv
430432
elif [ -n "$ZSH_VERSION" ] ; then
431-
compctl -g "`virtualenvwrapper_show_workon_options`" workon rmvirtualenv cpvirtualenv
433+
compctl -g "`virtualenvwrapper_show_workon_options`" workon rmvirtualenv cpvirtualenv showvirtualenv
432434
fi
433435

434436
# Prints the Python version string for the current interpreter.

0 commit comments

Comments
 (0)