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
--- 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)