We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db9bbdb commit 01146a7Copy full SHA for 01146a7
virtualenvwrapper_bashrc
@@ -114,4 +114,17 @@ function workon () {
114
source "$VIRTUAL_ENV/bin/postactivate"
115
fi
116
return 0
117
-}
+}
118
+
119
+#
120
+# Set up tab completion. (Adapted from Arthur Koziel's version at
121
+# http://arthurkoziel.com/2008/10/11/virtualenvwrapper-bash-completion/)
122
123
+_virtualenvs ()
124
+{
125
+ local cur="${COMP_WORDS[COMP_CWORD]}"
126
+ COMPREPLY=( $(compgen -W "`show_workon_options`" -- ${cur}) )
127
128
129
+complete -o default -o nospace -F _virtualenvs workon
130
+complete -o default -o nospace -F _virtualenvs rmvirtualenv
0 commit comments