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

PATCH: _prompt: two useless ':*:'



~ % prompt -<TAB>
~ % prompt -_arguments: bad pattern: adam1):*: [253]

parse_cadef/parse_caarg won't split the action at colons once the
first `:*pattern:' is encountered in a description, or for description
of normal/rest arguments (starting with `n:', `*:' or `:').

Should this be said en zshcompsys.1 ?  I guess this means we can
write `:foo:((a\:bar b\:baz))' without needing to escape colons in
such cases (I didn't try).


--- Completion/User/_prompt.old	Wed Dec  1 09:43:21 1999
+++ Completion/User/_prompt	Wed Dec  1 11:43:24 1999
@@ -2,6 +2,8 @@
 
 _arguments -s \
   '-l[list themes]:*:' \
+  '-c[show selected theme]:*:' \
   "-h[help]::prompt theme:($prompt_themes):*:" \
-  "-p[preview theme(s)]:*:prompt theme:($prompt_themes):*:" \
-  {-s'[set and save theme]','*'}":prompt themes:($prompt_themes):*:"
+  "-p[preview theme(s)]:*:prompt theme:($prompt_themes)" \
+  "-s[set and save theme]:prompt theme:($prompt_themes):*:" \
+  ":prompt theme:($prompt_themes)"

-- 
Alexandre Duret-Lutz



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