zsh_completion: run hg with HGPLAINEXCEPT=alias to list commands
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 10 Aug 2018 14:46:56 +0800
changeset 39207 f625e457f43a
parent 39206 93fdf00596e4
child 39208 362c4603602d
zsh_completion: run hg with HGPLAINEXCEPT=alias to list commands This is what contrib/bash_completion does, looks like a sensible thing to do. Differential Revision: https://phab.mercurial-scm.org/D4266
contrib/zsh_completion
--- a/contrib/zsh_completion	Fri Aug 10 14:41:41 2018 +0800
+++ b/contrib/zsh_completion	Fri Aug 10 14:46:56 2018 +0800
@@ -139,7 +139,7 @@
   typeset -gA _hg_alias_list
   local hline cmd cmdalias
 
-  _call_program hg hg debugcomplete -v | while read -A hline
+  _call_program hg HGPLAINEXCEPT=alias hg debugcomplete -v | while read -A hline
   do
     cmd=$hline[1]
     _hg_cmd_list+=($cmd)