Skip to content

Commit 75d24b7

Browse files
committed
Use $_VIRTUALENVWRAPPER_API instead of listing functions.
1 parent 61749bc commit 75d24b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

virtualenvwrapper_lazy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ function $venvw_name {
3434
# Set up completion functions to virtualenvwrapper_load
3535
function virtualenvwrapper_setup_lazy_completion {
3636
if [ -n "$BASH" ] ; then
37-
complete -o nospace -F virtualenvwrapper_load cdvirtualenv cdsitepackages workon rmvirtualenv cpvirtualenv showvirtualenv
37+
complete -o nospace -F virtualenvwrapper_load $(echo ${_VIRTUALENVWRAPPER_API})
3838
elif [ -n "$ZSH_VERSION" ] ; then
39-
compctl -K virtualenvwrapper_load cdvirtualenv cdsitepackages workon rmvirtualenv cpvirtualenv showvirtualenv
39+
compctl -K virtualenvwrapper_load $(echo ${_VIRTUALENVWRAPPER_API})
4040
fi
4141
}
4242

0 commit comments

Comments
 (0)