Skip to content

Commit 386bc5e

Browse files
committed
feat(python): complete with *.zip
Zips containing __main__.py can be run since Python 2.6. https://docs.python.org/3/library/zipapp.html#the-python-zip-application-archive-format
1 parent 1aa6111 commit 386bc5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/python

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ _python()
6565
if [[ ${words[*]::cword} == *\ -[cm]\ * ]]; then
6666
_filedir
6767
elif [[ $cur != -* ]]; then
68-
_filedir 'py?([cowz])'
68+
_filedir '@(py?([cowz])|zip)'
6969
else
7070
COMPREPLY=($(compgen -W '$(_parse_help "$1" -h)' -- "$cur"))
7171
fi

0 commit comments

Comments
 (0)