bash_completion: try to use bash3 features if they're available
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Mon, 29 Aug 2005 20:37:07 +0200
changeset 1153 fa9ae7df88a9
parent 1152 ff560ce0c635
child 1154 c3cb9f39a91f
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)
contrib/bash_completion
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -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