3dcf9fd662b2eb74dc84bd739ca66b8a5bf4f52b
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Delete python completion in favor of zsh's one
Diff
1diff --git a/plugins/python/_python b/plugins/python/_python
2deleted file mode 100644
3index f517d4806b7f761dd675e8ee80569d8c29a7015c..0000000000000000000000000000000000000000
4--- a/plugins/python/_python
5+++ /dev/null
6@@ -1,54 +0,0 @@
7-#compdef python
8-
9-# Python 2.6
10-# Python 3.0
11-
12-local curcontext="$curcontext" state line expl
13-typeset -A opt_args
14-
15-local -a args
16-
17-if _pick_variant python3=Python\ 3 python2 --version; then
18- args=(
19- '(-bb)-b[issue warnings about str(bytes_instance), str(bytearray_instance) and comparing bytes/bytearray with str]'
20- '(-b)-bb[issue errors about str(bytes_instance), str(bytearray_instance) and comparing bytes/bytearray with str]'
21- )
22-else
23- args=(
24- '-Q+[division options]:division option:(old warn warnall new)'
25- '(-tt)-t[issue warnings about inconsistent tab usage]'
26- '(-t)-tt[issue errors about inconsistent tab usage]'
27- '-3[warn about Python 3.x incompatibilities]'
28- )
29-fi
30-
31-_arguments -C -s -S "$args[@]" \
32- "-B[don't write .py\[co\] files on import]" \
33- '(1 -)-c+[program passed in as string (terminates option list)]:python command:' \
34- '-d[debug output from parser]' \
35- '-E[ignore PYTHON* environment variables (such as PYTHONPATH)]' \
36- '(1 * -)-h[display help information]' \
37- '-i[inspect interactively after running script]' \
38- '(1 * -)-m[run library module as a script (terminates option list)]:module:->modules' \
39- '-O[optimize generated bytecode slightly]' \
40- '-OO[remove doc-strings in addition to the -O optimizations]' \
41- "-s[don't add user site directory to sys.path]" \
42- "-S[don't imply 'import site' on initialization]" \
43- '-u[unbuffered binary stdout and stderr]' \
44- '-v[verbose (trace import statements)]' \
45- '(1 * -)'{-V,--version}'[display version information]' \
46- '-W+[warning control]:warning filter (action\:message\:category\:module\:lineno):(default always ignore module once error)' \
47- '-x[skip first line of source, allowing use of non-Unix forms of #!cmd]' \
48- '(-)1:script file:_files -g "*.py(|c|o)(-.)"' \
49- '*::script argument: _normal' && return
50-
51-if [[ "$state" = modules ]]; then
52- local -a modules
53- modules=(
54- ${${=${(f)"$(_call_program modules $words[1] -c \
55- 'from\ pydoc\ import\ help\;\ help\(\"modules\"\)')"}[2,-3]}:#\(package\)}
56- )
57- _wanted modules expl module compadd -a modules && return
58-fi
59-
60-return 1