aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-06-06 03:55:03 +0200
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-06-06 03:55:03 +0200
commita1799f13efd4fcecc6720344d55a5a8bc78fe86a (patch)
tree4d2825bf88da81075c9b707873fa3f84e8399cac
parent63ec2c34280297573f44b8a8ab8f7578f056908e (diff)
downloadpaludis-a1799f13efd4fcecc6720344d55a5a8bc78fe86a.tar.gz
paludis-a1799f13efd4fcecc6720344d55a5a8bc78fe86a.tar.xz
zsh-completion: cave print-executables completion
-rw-r--r--zsh-completion/_cave9
1 files changed, 9 insertions, 0 deletions
diff --git a/zsh-completion/_cave b/zsh-completion/_cave
index 32db9f8..c43c989 100644
--- a/zsh-completion/_cave
+++ b/zsh-completion/_cave
@@ -23,6 +23,7 @@ _cave()
'print-commands:Prints a list of known cave commands'
'print-environment-metadata:Prints environment metadata'
'print-id-contents:Prints the contents of a package ID'
+ 'print-id-executables:Prints a list of executables belonging to an ID'
'print-id-metadata:Prints ID metadata'
'print-ids:Prints a list of known IDs'
'print-owners:Prints a list of package IDs owning a given file'
@@ -112,6 +113,14 @@ _cave_cmd_print-id-contents()
'--format[Select the output format]:format: '
}
+(( ${+functions[_cave_cmd_print-id-executables]} )) ||
+_cave_cmd_print-id-executables()
+{
+ _arguments -s : \
+ '(--help -h)'{--help,-h}'[Display help messsage]'
+}
+
+
(( ${+functions[_cave_cmd_print-id-metadata]} )) ||
_cave_cmd_print-id-metadata()
{