summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-03-07 02:40:42 +0000
committerClint Adams <clint@users.sourceforge.net>2005-03-07 02:40:42 +0000
commite2ace8f5e4c70a4edef5c0bdc1be18935c19feb9 (patch)
tree49167d27a8f17a06aed33c28faa8bffcce5b7437
parentbb2a6cd760b6c8245376ca48ec5a52eab5d615b9 (diff)
downloadzsh-e2ace8f5e4c70a4edef5c0bdc1be18935c19feb9.tar.gz
zsh-e2ace8f5e4c70a4edef5c0bdc1be18935c19feb9.zip
* 20937: Completion/Unix/Command/_fortune: completion for fortune command.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_fortune15
2 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c74bdd7de..bcc3d9d4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2005-03-07 Clint Adams <clint@zsh.org>
+ * 20937: Completion/Unix/Command/_fortune: completion for fortune
+ command.
+
* 20936: Completion/Linux/Command/_acpi: completion for acpi
command.
diff --git a/Completion/Unix/Command/_fortune b/Completion/Unix/Command/_fortune
new file mode 100644
index 000000000..fec07c436
--- /dev/null
+++ b/Completion/Unix/Command/_fortune
@@ -0,0 +1,15 @@
+#compdef fortune
+
+_arguments \
+ '-a[choose from all lists of maxims, both offensive and not]' \
+ '-c[show the cookie file from which the fortune came]' \
+ '-e[consider all fortune files to be of equal size]' \
+ '-f[print out the list of files which would be searched]' \
+ '-l[long dictums only]' \
+ '-m[print all matches to regex]:BRE:' \
+ '-n[set longest length to be short]:length:' \
+ '-o[choose only from potentially offensive aphorisms]' \
+ '-s[short apothegms only]' \
+ '-i[ignore case for -m patterns]' \
+ '-w[wait before termination for a time based on msg length]' \
+ '*:databases:'