diff options
author | David Paleino <d.paleino@gmail.com> | 2008-11-22 18:14:40 +0100 |
---|---|---|
committer | David Paleino <d.paleino@gmail.com> | 2008-11-22 18:14:40 +0100 |
commit | 6e61e669e7ef4bd9c166bf7f144155ada1ccc3f3 (patch) | |
tree | 52aac02e75e52757ce30fc0769aeada3b4fbf91e /README | |
parent | f0ed7c20e227a89a536280d224dc7f932c7b2dfe (diff) | |
download | bash-completion-6e61e669e7ef4bd9c166bf7f144155ada1ccc3f3.tar.gz |
README updated: explain how to use bash-completion correctly.
(Closes: #482383)
Diffstat (limited to 'README')
-rw-r--r-- | README | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -3,13 +3,23 @@ INSTALLATION The easiest way to install this software is to use a package, such as the RPM that I maintain for Red Hat Linux, the .deb package for -Debian/GNU Linux or Ubuntu, etc. +Debian/GNU Linux or Ubuntu, etc. You still need to source it from either +/etc/bashrc or ~/.bashrc (or any other file sourcing those). You can do +this by simply using: -If that's not an option 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. +# Use bash-completion, if available +if [ -f /etc/bash_completion ]; then + . /etc/bash_completion +fi + +(if you happen to have *only* bash >= 2.04, 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. -Here's one possible way of doing that from /etc/bashrc: +Here's another possible way of doing that from /etc/bashrc: # Check for interactive shell. if [ -n "$PS1" ]; then |