1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 08:51:18 +02:00
zsh/Completion/Unix/Command/_kvno
2005-06-24 18:48:55 +00:00

23 lines
397 B
Plaintext

#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