[patch enhancement 2] “hg help …” completion. Include “enabled extensions” and “additional help topics”
Roland Eggner
edvx1 at systemanalysen.net
Mon Dec 30 13:12:34 CST 2013
# HG changeset patch
# Parent c841ed025667e42bd297e50b8db2e0ddf2c8af67
# User Roland Eggner < odv at systomanalyson.not s/o/e/g >
# Date 1388258172 -3600
[enhancement 2] “hg help …” completion. Include “enabled extensions” and “additional help topics”.
diff --git a/contrib/bash_completion b/contrib/bash_completion
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -224,6 +224,10 @@ shopt -s extglob
case "$cmd" in
help)
_hg_commands
+ COMPREPLY+=( $( compgen -W "$(
+ _hg_cmd help \
+ | sed -nre '/^enabled extensions:/,/^use "hg -v help" /{s/^ (\w+).*/\1/p;}'
+ )" -- "$cur" ) )
;;
export)
if _hg_ext_mq_patchlist qapplied && [ "${COMPREPLY[*]}" ]; then
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20131230/6acc9bb1/attachment.pgp>
More information about the Mercurial-devel
mailing list