comparison contrib/zsh_completion @ 39207:f625e457f43a

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
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 10 Aug 2018 14:46:56 +0800
parents 93fdf00596e4
children 362c4603602d
comparison
equal deleted inserted replaced
39206:93fdf00596e4 39207:f625e457f43a
137 _hg_get_commands() { 137 _hg_get_commands() {
138 typeset -ga _hg_cmd_list 138 typeset -ga _hg_cmd_list
139 typeset -gA _hg_alias_list 139 typeset -gA _hg_alias_list
140 local hline cmd cmdalias 140 local hline cmd cmdalias
141 141
142 _call_program hg hg debugcomplete -v | while read -A hline 142 _call_program hg HGPLAINEXCEPT=alias hg debugcomplete -v | while read -A hline
143 do 143 do
144 cmd=$hline[1] 144 cmd=$hline[1]
145 _hg_cmd_list+=($cmd) 145 _hg_cmd_list+=($cmd)
146 146
147 for cmdalias in $hline[2,-1] 147 for cmdalias in $hline[2,-1]