changeset 1153:fa9ae7df88a9

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)
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 29 Aug 2005 20:37:07 +0200
parents ff560ce0c635
children c3cb9f39a91f
files contrib/bash_completion
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/bash_completion	Mon Aug 29 20:37:07 2005 +0200
+++ b/contrib/bash_completion	Mon Aug 29 20:37:07 2005 +0200
@@ -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