Blame SOURCES/bash-completion-2.9-override-completions.patch

0bf2bb
diff --git a/README.md b/README.md
0bf2bb
--- a/README.md
0bf2bb
+++ b/README.md
0bf2bb
@@ -121,6 +121,31 @@ A. No. Use `M-/` to (in the words of the bash man page) attempt file
0bf2bb
 A. Put them in `~/.bash_completion`, which is parsed at the end of the
0bf2bb
    main completion script. See also the next question.
0bf2bb
0bf2bb
+**Q. How can I override a completion shipped by bash-completion?**
0bf2bb
+
0bf2bb
+A. Install a local completion of your own appropriately for the desired
0bf2bb
+   command, and it will take precedence over the one shipped by us. See the
0bf2bb
+   next answer for details where to install it, if you are doing it on per
0bf2bb
+   user basis. If you want to do it system wide, you can install eagerly
0bf2bb
+   loaded files in `compatdir` (see a couple of questions further down for
0bf2bb
+   more info) and install a completion for the commands to override
0bf2bb
+   completions shipped by us.
0bf2bb
+
0bf2bb
+   If you want to use bash's default completion instead of one of ours,
0bf2bb
+   something like this should work (where `$cmd` is the command to override
0bf2bb
+   completion for): `complete -o default -o bashdefault $cmd`
0bf2bb
+
0bf2bb
+**Q. Where should I install my own local completions?**
0bf2bb
+
0bf2bb
+A. Put them in the `completions` subdir of `$BASH_COMPLETION_USER_DIR`
0bf2bb
+   (defaults to `$XDG_DATA_HOME/bash-completion` or
0bf2bb
+    `~/.local/share/bash-completion`
0bf2bb
+   if `$XDG_DATA_HOME` is not set) to have them loaded on demand.
0bf2bb
+   See also the next question's answer for considerations for these
0bf2bb
+   files' names, they apply here as well. Alternatively, you can write
0bf2bb
+   them directly in `~/.bash_completion` which is loaded eagerly by
0bf2bb
+   our main script.
0bf2bb
+
0bf2bb
 **Q. I author/maintain package X and would like to maintain my own
0bf2bb
    completion code for this package. Where should I put it to be sure
0bf2bb
    that interactive bash shells will find it and source it?**