comparison contrib/bash_completion @ 14374:51f444e85734

bash_completion: enable alias auto-complete When auto-completing, set HGPLAINEXCEPT=alias to list aliases in the suggestions. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
date Tue, 17 May 2011 00:46:52 +0200
parents a2f0f61a6988
children 80f3ae36f908
comparison
equal deleted inserted replaced
14373:a599431b0ab6 14374:51f444e85734
60 } 60 }
61 61
62 _hg_commands() 62 _hg_commands()
63 { 63 {
64 local commands 64 local commands
65 commands="$(_hg_cmd debugcomplete "$cur")" || commands="" 65 commands="$(HGPLAINEXCEPT=alias _hg_cmd debugcomplete "$cur")" || commands=""
66 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$commands' -- "$cur")) 66 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$commands' -- "$cur"))
67 } 67 }
68 68
69 _hg_paths() 69 _hg_paths()
70 { 70 {