about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-06-24 18:48:55 +0000
committerClint Adams <clint@users.sourceforge.net>2005-06-24 18:48:55 +0000
commit257179f91f4faeaa9919f1885b1461b4f31be825 (patch)
tree46eab9b9a1a44adb5844202bf6f70153f1588fe8 /Completion/Unix
parent7e01c5fa834d5b0cf624c186c015b1553a686b3f (diff)
downloadzsh-257179f91f4faeaa9919f1885b1461b4f31be825.tar.gz
zsh-257179f91f4faeaa9919f1885b1461b4f31be825.tar.xz
zsh-257179f91f4faeaa9919f1885b1461b4f31be825.zip
21382: completion for MIT krb5's kvno.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_kvno22
1 files changed, 22 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_kvno b/Completion/Unix/Command/_kvno
new file mode 100644
index 000000000..812d728de
--- /dev/null
+++ b/Completion/Unix/Command/_kvno
@@ -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