mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
21382: completion for MIT krb5's kvno.
This commit is contained in:
parent
7e01c5fa83
commit
257179f91f
@ -1,3 +1,8 @@
|
||||
2005-06-24 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 21382: Completion/Unix/Command/_kvno: completion for MIT
|
||||
krb5's kvno.
|
||||
|
||||
2005-06-24 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 21380: Completion/Linux/Command/_iwconfig,
|
||||
|
22
Completion/Unix/Command/_kvno
Normal file
22
Completion/Unix/Command/_kvno
Normal file
@ -0,0 +1,22 @@
|
||||
#compdef kvno
|
||||
|
||||
_arguments \
|
||||
'-c[credentials cache]:cache:_files' \
|
||||
'-e[enctype]:enctype:' \
|
||||
'-q[suppress printing]' \
|
||||
'-h[help]' \
|
||||
'-4[kerberos 4 tickets]' \
|
||||
':principal:->principal' && return 0
|
||||
|
||||
case "$state" in
|
||||
(principal)
|
||||
if [[ -prefix host/ ]]; then
|
||||
compset -P host/
|
||||
_hosts
|
||||
else
|
||||
_alternative \
|
||||
'users:user:_users' \
|
||||
'services:service:compadd -S/ host'
|
||||
fi
|
||||
;;
|
||||
esac
|
Loading…
Reference in New Issue
Block a user