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

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