Ville Skyttä 1e9865
diff -up bash-completion-1.3/bash_completion.sh.in~ bash-completion-1.3/bash_completion.sh.in
Ville Skyttä 1e9865
--- bash-completion-1.3/bash_completion.sh.in~	2011-01-21 11:36:11.000000000 +0200
Ville Skyttä 1e9865
+++ bash-completion-1.3/bash_completion.sh.in	2011-09-05 00:08:06.654679539 +0300
Ville Skyttä 1e9865
@@ -4,6 +4,8 @@
Ville Skyttä 1e9865
 # Check for recent enough version of bash.
Ville Skyttä 1e9865
 bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
Ville Skyttä 1e9865
 if [ $bmajor -gt 3 ] || [ $bmajor -eq 3 -a $bminor -ge 2 ]; then
Ville Skyttä 1e9865
+    [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] && \
Ville Skyttä 1e9865
+        . "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion"
Ville Skyttä 1e9865
     if shopt -q progcomp && [ -r @sysconfdir@/bash_completion ]; then
Ville Skyttä 1e9865
         # Source completion code.
Ville Skyttä 1e9865
         . @sysconfdir@/bash_completion
Ville Skyttä 1e9865
diff -up bash-completion-1.3/README~ bash-completion-1.3/README
Ville Skyttä 1e9865
--- bash-completion-1.3/README~	2011-01-21 11:36:11.000000000 +0200
Ville Skyttä 1e9865
+++ bash-completion-1.3/README	2011-09-05 00:07:50.822210890 +0300
Ville Skyttä 1e9865
@@ -30,6 +30,14 @@ mechanism, i.e. does not automatically s
Ville Skyttä 1e9865
 can source the $sysconfdir/profile.d/bash_completion.sh script in
Ville Skyttä 1e9865
 /etc/bashrc or ~/.bashrc.
Ville Skyttä 1e9865
 
Ville Skyttä 1e9865
+The profile.d script provides a configuration file hook that can be
Ville Skyttä 1e9865
+used to prevent loading bash_completion on per user basis when it's
Ville Skyttä 1e9865
+installed system wide.  To do this, turn off programmable completion
Ville Skyttä 1e9865
+with "shopt -u progcomp" in $XDG_CONFIG_HOME/bash_completion
Ville Skyttä 1e9865
+(~/.config/bash_completion if $XDG_CONFIG_HOME is not set), and turn
Ville Skyttä 1e9865
+it back on for example in ~/.bashrc if you want to use programmable
Ville Skyttä 1e9865
+completion for other purposes.
Ville Skyttä 1e9865
+
Ville Skyttä 1e9865
 If you're using MacOS X, /etc/bashrc is apparently not sourced at all.
Ville Skyttä 1e9865
 In that case, you should put the bash_completion file in /sw/etc and add
Ville Skyttä 1e9865
 the following code to ~/.bash_profile: