mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 12:40:58 +02:00
unposted: handle p4 protects completion
This commit is contained in:
parent
b86c191af5
commit
e77c7c2844
2 changed files with 15 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2008-05-14 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* unposted: Completion/Unix/Command/_perforce: handle
|
||||
p4 protects.
|
||||
|
||||
* 25025: Doc/Zsh/builtins.yo, Src/builtin.c, Src/math.c,
|
||||
Src/utils.c: more checks to ensure radix for arithmetic
|
||||
constants is between 2 and 36 inclusive.
|
||||
|
|
|
@ -2127,6 +2127,18 @@ _perforce_cmd_protect() {
|
|||
}
|
||||
|
||||
|
||||
(( $+functions[_perforce_cmd_protects] )) ||
|
||||
_perforce_cmd_protects() {
|
||||
_arguments -s : \
|
||||
'(-g -u)-a[show for all users]' \
|
||||
'(-a -u)-g[select by group]:perforce group:_perforce_groups' \
|
||||
'(-a -g)-u[select by user]:perforce user:_perforce_users' \
|
||||
'-h[limit to host]:host:_perforce_hosts' \
|
||||
'-m[single word summary]' \
|
||||
'*:file:_perforce_files'
|
||||
}
|
||||
|
||||
|
||||
(( $+functions[_perforce_cmd_reopen] )) ||
|
||||
_perforce_cmd_reopen() {
|
||||
_arguments -s : \
|
||||
|
|
Loading…
Reference in a new issue