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