[PATCH 3 of 3] bash_completion: enable alias auto-complete

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Mon May 16 17:54:09 CDT 2011


# HG changeset patch
# User "Yann E. MORIN" <yann.morin.1998 at anciens.enib.fr>
# Date 1305586012 -7200
# Node ID e5d79ce2faa7fcff63b6debdf93d7a21bd71d51e
# Parent  81f26696042e079100c0bbcc886a1369b2da9a7e
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 at anciens.enib.fr>

diff --git a/contrib/bash_completion b/contrib/bash_completion
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -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"))
 }
 


More information about the Mercurial-devel mailing list