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

PATCH: _brace_parameter: add (-)



---
I looked at adding fc -s which is probably not that hard, but I noticed
that fc -e<tab> and fc -e <tab> both don't complete commands which it
looks like they should.

(the completer has -e+ which means it only expects -ecommand but in
practice -e - also works, as well as the manpage listing it with the
space when talking about -s.

 Completion/Zsh/Context/_brace_parameter | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Completion/Zsh/Context/_brace_parameter b/Completion/Zsh/Context/_brace_parameter
index e020e048ad..66be4f7cd8 100644
--- a/Completion/Zsh/Context/_brace_parameter
+++ b/Completion/Zsh/Context/_brace_parameter
@@ -156,7 +156,8 @@ if [[ $PREFIX = *'${('[^\)]# ]]; then
     "i:sort case-insensitively"
     "k:substitute keys of associative arrays"
     "L:lower case all letters"
-    "n:sort decimal integers numerically"
+    "n:sort positive decimal integers numerically"
+    "-:sort decimal integers numerically"
     "o:sort in ascending order (lexically if no other sort option)"
     "O:sort in descending order (lexically if no other sort option)"
     "P:use parameter value as name of parameter for redirected lookup"
-- 
2.15.1





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