summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-01-02 23:43:28 +0200
committerVille Skyttä <ville.skytta@iki.fi>2011-01-02 23:43:28 +0200
commit24a37fc8405c811d22369e1a7cce08605c324941 (patch)
treeb54fbcc7a278e09c9782fde8e3d11194d031b48e
parent15bc11769b87b253568b243697533d92a3eddd7d (diff)
downloadbash-completion-24a37fc8405c811d22369e1a7cce08605c324941.tar.gz
Note autotools installation steps.
-rw-r--r--README25
1 files changed, 14 insertions, 11 deletions
diff --git a/README b/README
index 725678ac..9a8ba24c 100644
--- a/README
+++ b/README
@@ -15,17 +15,20 @@ fi
(if you happen to have *only* bash >= 3.2 installed, see further if not)
If you don't have the package readily available for your distribution, or
-you simply don't want to do this, put the bash_completion file somewhere
-on your system and source it from either /etc/bashrc or ~/.bashrc, as
-explained above.
-
-A more elaborate way that takes care of not loading on old, unsupported
-bash versions as well as some other conditions is included in the bash
-completion package as bash_completion.sh. If your system has the
-/etc/profile.d directory and loads all files from it automatically,
-you may place the file in it. If not, place the file somewhere on your
-system and source it from /etc/bashrc or ~/.bashrc, or copy its contents
-to one of those files.
+you simply don't want to use one, you can install bash completion using the
+standard commands for GNU autotools packages:
+
+./configure
+make
+make check # optional
+make install # as root
+
+These commands installs the completions and helpers, as well as a
+profile.d script that loads bash_completion where appropriate. If
+your system does not use the profile.d directory (usually below /etc)
+mechanism, i.e. does not automatically source shell scripts in it, you
+can source the $sysconfdir/profile.d/bash_completion.sh script in
+/etc/bashrc or ~/.bashrc.
If you're using MacOS X, /etc/bashrc is apparently not sourced at all.
In that case, you should put the bash_completion file in /sw/etc and add