Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] add r parameter to zcalc completion



Hello,

zcalc has a documented `r` parameter to enable RPN:
https://github.com/zsh-users/zsh/blob/master/Functions/Misc/zcalc#L192

The patch adds the parameter to the completed options.

I subscribed to the mailing list.


diff --git i/Completion/Zsh/Function/_zcalc w/Completion/Zsh/Function/_zcalc
index 093a7a91d..f4432823f 100644
--- i/Completion/Zsh/Function/_zcalc
+++ w/Completion/Zsh/Function/_zcalc
@@ -4,4 +4,5 @@ _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]' \
+  '-r[enable Reverse Polish Notation]' \
   '*:expression: '




Messages sorted by: Reverse Date, Date, Thread, Author