[PATCH 5 of 5] bash_completion: try to use bash3 features if they're available
Alexis S. L. Carvalho
alexis at cecm.usp.br
Mon Aug 29 01:43:17 UTC 2005
# HG changeset patch
# User Alexis S. L. Carvalho <alexis at cecm.usp.br>
# Node ID 32feebd7ea378efed428e873dac3f9562863e85e
# Parent eb61cf03131f6f08d9c68dd22a8d56a790c49008
bash_completion: try to use bash3 features if they're available
This does NOT break completion for bash 2.05b (I haven't tested
earlier versions)
diff -r eb61cf03131f -r 32feebd7ea37 contrib/bash_completion
--- a/contrib/bash_completion Mon Aug 29 01:12:06 2005
+++ b/contrib/bash_completion Mon Aug 29 01:12:06 2005
@@ -166,4 +166,5 @@
}
-complete -o default -F _hg hg
+complete -o bashdefault -o default -F _hg hg 2> /dev/null \
+ || complete -o default -F _hg hg
More information about the Mercurial
mailing list