Mercurial > hg-stable
changeset 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 | a599431b0ab6 |
children | 436e5379d7ba |
files | contrib/bash_completion |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/bash_completion Tue May 17 00:17:52 2011 +0200 +++ b/contrib/bash_completion Tue May 17 00:46:52 2011 +0200 @@ -62,7 +62,7 @@ _hg_commands() { local commands - commands="$(_hg_cmd debugcomplete "$cur")" || commands="" + commands="$(HGPLAINEXCEPT=alias _hg_cmd debugcomplete "$cur")" || commands="" COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$commands' -- "$cur")) }