Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] complete two or more options for zsh
A few additions to _zsh:
support -s and -b, and offer files for script args.
diff --git a/Completion/Unix/Command/_zsh b/Completion/Unix/Command/_zsh
index 3b6d7ad..d432aa9 100644
--- a/Completion/Unix/Command/_zsh
+++ b/Completion/Unix/Command/_zsh
@@ -3,6 +3,8 @@
_arguments -S -s : \
'*-o+[set named option]:option:_options' \
'*+o+[unset named option]:option:_options' \
+ '(1 -s --shinstdin)'{-s,--shinstdin}'[read commands from standard input]' \
+ '(-)-b[end of option processing, like --]' \
'(1 -)-c[run a command]:command:_cmdstring' \
'(-)1:script file:_files' \
- '*:command arguments' --
+ '*:script arguments:_files' --
Messages sorted by:
Reverse Date,
Date,
Thread,
Author