zsh: complete qguard with +/- guard prefixes
authorBrendan Cully <brendan@kublai.com>
Thu, 26 Oct 2006 00:27:19 -0700
changeset 3529 fe9c1e886b5e
parent 3528 bf48ca46139b
child 3531 b5de4d5d60be
zsh: complete qguard with +/- guard prefixes
contrib/zsh_completion
--- a/contrib/zsh_completion
+++ b/contrib/zsh_completion
@@ -519,6 +519,7 @@ typeset -A _hg_cmd_globals
 _hg_qguards() {
   typeset -a guards
   local guard
+  compset -P "+|-"
   _hg_cmd qselect -s | while read guard
   do
     guards+=(${guard#(+|-)})