summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-05-05 12:01:06 +0100
committerPeter Stephenson <pws@zsh.org>2015-05-05 12:01:06 +0100
commitcfc2a17c4e0e9128682bcbb96a4a2eafe0a4b425 (patch)
tree56285df78adc1b0894255f41267ac63825dfabed
parent9afbe051b9d261eb5703fdb3403abac41ce5f816 (diff)
downloadzsh-cfc2a17c4e0e9128682bcbb96a4a2eafe0a4b425.tar.gz
zsh-cfc2a17c4e0e9128682bcbb96a4a2eafe0a4b425.tar.xz
zsh-cfc2a17c4e0e9128682bcbb96a4a2eafe0a4b425.zip
35033: trivial zcalc completion
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Zsh/Function/_zcalc7
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0bc8b61b1..d7a2c0553 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-05-05  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* 35033: Completion/Zsh/Function/_zcalc: trivial completion.
+
 2015-05-04  Oliver Kiddle  <opk@zsh.org>
 
 	* 35029: Src/Zle/zle_word.c, Test/X02zlevi.ztst:
diff --git a/Completion/Zsh/Function/_zcalc b/Completion/Zsh/Function/_zcalc
new file mode 100644
index 000000000..a4b1e9701
--- /dev/null
+++ b/Completion/Zsh/Function/_zcalc
@@ -0,0 +1,7 @@
+#compdef zcalc
+
+_arguments -s -w -S : \
+  '-#[Specify default base]:base: ' \
+  '-f[Force floating point for all expressions]' \
+  '-e[Treat command line as expressions to be output immediately]' \
+  '*:Expression: '