about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_kvno22
2 files changed, 27 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ea9e46a55..6b5904045 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
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