mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-04 17:11:30 +01:00
new completion functions
This commit is contained in:
parent
6150ef8696
commit
da0179bfb2
6 changed files with 44 additions and 4 deletions
12
ChangeLog
12
ChangeLog
|
|
@ -1,3 +1,9 @@
|
|||
2001-04-03 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 13898, Bart: 13827: Completion/Zsh/Command/_ttyctl,
|
||||
Completion/Zsh/Command/_ulimit, Completion/Zsh/Command/_vared:
|
||||
new completion functions
|
||||
|
||||
2001-04-03 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 13892: Src/Zle/compmatch.c, Test/comptest, Test/ztst.zsh:
|
||||
|
|
@ -40,7 +46,7 @@
|
|||
|
||||
2001-04-01 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* Completion/Builtins/_bindkey, Completion/Builtins/_compdef,
|
||||
* 13863: Completion/Builtins/_bindkey, Completion/Builtins/_compdef,
|
||||
Completion/Builtins/_disable, Completion/Builtins/_emulate,
|
||||
Completion/Builtins/_enable, Completion/Builtins/_fc,
|
||||
Completion/Builtins/_hash, Completion/Builtins/_print,
|
||||
|
|
@ -111,8 +117,8 @@
|
|||
|
||||
2001-03-28 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* Completion/Commands/_history_complete_word,
|
||||
13815: Doc/Zsh/compsys.yo: more cleanup; simplify the stop
|
||||
* 13815: Completion/Commands/_history_complete_word,
|
||||
Doc/Zsh/compsys.yo: more cleanup; simplify the stop
|
||||
and liststyles; try to make it obey whatever _main_complete
|
||||
says should be done (menu-wise)
|
||||
|
||||
|
|
|
|||
|
|
@ -6,4 +6,5 @@ _builtin _emulate _precommand _setopt _unsetopt _zle
|
|||
_cd _enable _print _source _wait _zmodload
|
||||
_command _fc _prompt _stat _which _zpty
|
||||
_compdef _hash _read _trap _zcompile _zstyle
|
||||
_ttyctl _ulimit _vared
|
||||
'
|
||||
|
|
|
|||
4
Completion/Zsh/Command/_ttyctl
Normal file
4
Completion/Zsh/Command/_ttyctl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#compdef ttyctl
|
||||
|
||||
_arguments '(-u)-f[freeze terminal settings]' \
|
||||
'(-f)-u[unfreeze terminal settings]'
|
||||
17
Completion/Zsh/Command/_ulimit
Normal file
17
Completion/Zsh/Command/_ulimit
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#compdef ulimit
|
||||
|
||||
[[ $PREFIX = u* ]] && compadd unlimited && return 0
|
||||
|
||||
_arguments -s \
|
||||
'-H[set hard limits]' \
|
||||
'-S[set soft and hard limits (with -H)]' \
|
||||
'(-H -S -c -d -f -l -m -n -s -t *)-a[list all current resource limits]' \
|
||||
'-c[core dump size limit]:max core dump size (512-byte blocks)' \
|
||||
'-d[maximum size of data segment]:maximum size of data segment (K-bytes)' \
|
||||
'-f[size of largest file allowed]:size of largest file allowed (512-byte blocks)' \
|
||||
'-l[maximum size of locked in memory]:maximum size of locked in memory (K-bytes)' \
|
||||
'-m[maximum size of physical memory]:maximum size of physical memory (K-bytes)' \
|
||||
'-n[maximum no. of open file descriptors]:maximum no. of open file descriptors' \
|
||||
'-s[stack size limit]:stack size limit (K-bytes)' \
|
||||
'-t[maximum cpu time per process]:maximum cpu time per process (seconds)' \
|
||||
'*:size of largest file allowed'
|
||||
12
Completion/Zsh/Command/_vared
Normal file
12
Completion/Zsh/Command/_vared
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#compdef vared
|
||||
|
||||
_arguments -s -A "-*" \
|
||||
'(-a)-A[edit associative array]' \
|
||||
'(-A)-a[edit array parameter]' \
|
||||
"-c[create parameter or change type]" \
|
||||
'-p+[specify left prompt]:prompt' \
|
||||
'-r+[specify right prompt]:right prompt' \
|
||||
'-h[allow access to history]' \
|
||||
'-e[exit on EOF (^D)]' \
|
||||
'1:parameter spec:_vars'
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#compdef getopts unset vared
|
||||
#compdef getopts unset
|
||||
|
||||
# This will handle completion of keys of associative arrays, e.g. at
|
||||
# `vared foo[<TAB>'.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue