[PATCH 03 of 11 V4] bash_completion: expand aliased commands
Sean Farley
sean.michael.farley at gmail.com
Tue Nov 26 01:37:09 UTC 2013
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1384978614 18000
# Wed Nov 20 15:16:54 2013 -0500
# Node ID ab5e1076d705d2872262621ad9cbc0884faee5de
# Parent b635ef5257ee0a956ed3c5d6c8311357705c2b81
bash_completion: expand aliased commands
diff --git a/contrib/bash_completion b/contrib/bash_completion
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -217,10 +217,13 @@
else
return 1
fi
fi
+ local aliascmd=$(_hg_cmd showconfig alias.$cmd | awk '{print $1}')
+ [ -n "$aliascmd" ] && cmd=$aliascmd
+
case "$cmd" in
help)
_hg_commands
;;
export)
More information about the Mercurial-devel
mailing list