mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
18305: new completion for python
This commit is contained in:
parent
8e50782a72
commit
e4443a2d4f
3 changed files with 32 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-02-27 Doug Kearns <djkea2@mugca.its.monash.edu.au>
|
||||
|
||||
* 18305: Completion/Zsh/Command/_python: new completion for
|
||||
python.
|
||||
|
||||
2003-02-27 Geoff Wing <gcw@zsh.org>
|
||||
|
||||
* 18306: Src/Zle/zle_refresh.c: fix redisplay of rprompt when line
|
||||
|
|
|
@ -19,5 +19,5 @@ _user_admin _rsync _arping _spamassassin _mtools _ifconfig
|
|||
_fsh _chkconfig _cdcd _irssi _mysqldiff _sccs
|
||||
_netcat _larch _texinfo _figlet _elinks _tidy
|
||||
_global _global_tags _ant _lsof _mt _xmlsoft
|
||||
_p4
|
||||
_p4 _python
|
||||
'
|
||||
|
|
26
Completion/Unix/Command/_python
Normal file
26
Completion/Unix/Command/_python
Normal file
|
@ -0,0 +1,26 @@
|
|||
#compdef python
|
||||
|
||||
# Python 2.2.2
|
||||
|
||||
_arguments -s -S \
|
||||
'(1 -)-c+[program passed in as string (terminates option list)]:python command:' \
|
||||
'-d[debug output from parser (also PYTHONDEBUG=x)]' \
|
||||
'-E[ignore environment variables (such as PYTHONPATH)]' \
|
||||
'(1 * -)-h[print this help message and exit]' \
|
||||
'-i[inspect interactively after running script (also PYTHONINSPECT=x)]' \
|
||||
'-O[optimize generated bytecode (a tad; also PYTHONOPTIMIZE=x)]' \
|
||||
'-OO[remove doc-strings in addition to the -O optimizations]' \
|
||||
'-Q+[division options: -Qold (default), -Qwarn, -Qwarnall, -Qnew]:division option:(old warn warnall new)' \
|
||||
"-S[don't imply 'import site' on initialization]" \
|
||||
'-t[issue warnings about inconsistent tab usage]' \
|
||||
'-tt[issue errors about inconsistent tab usage]' \
|
||||
'-u[unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x)]' \
|
||||
'-v[verbose (trace import statements) (also PYTHONVERBOSE=x)]' \
|
||||
'(1 * -)-V[print the Python version number and exit]' \
|
||||
'-W+[warning control (arg is action:message:category:module:lineno)]:warning filter:(default always ignore module once error)' \
|
||||
'-x[skip first line of source, allowing use of non-Unix forms of #!cmd]' \
|
||||
'(1 -)-[program read from stdin (default; interactive mode if a tty)]' \
|
||||
'(-)1:script file:_files -g \*.py\(\|c\|o\)' \
|
||||
'*:script argument:_files' && return
|
||||
|
||||
return 1
|
Loading…
Reference in a new issue