[Bash-completion-commits] ./current r1207: README updated: explain how to use bash-completion correctly.
David Paleino
d.paleino at gmail.com
Sat Nov 22 17:14:40 UTC 2008
------------------------------------------------------------
revno: 1207
committer: David Paleino <d.paleino at gmail.com>
branch nick: current
timestamp: Sat 2008-11-22 18:14:40 +0100
message:
README updated: explain how to use bash-completion correctly.
(Closes: #482383)
modified:
README
debian/changelog
-------------- next part --------------
=== modified file 'README'
--- a/README 2008-06-21 20:19:37 +0000
+++ b/README 2008-11-22 17:14:40 +0000
@@ -3,13 +3,23 @@
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.
-
-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.
-
-Here's one possible way of doing that from /etc/bashrc:
+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:
+
+# 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 another possible way of doing that from /etc/bashrc:
# Check for interactive shell.
if [ -n "$PS1" ]; then
=== modified file 'debian/changelog'
--- a/debian/changelog 2008-11-22 17:10:38 +0000
+++ b/debian/changelog 2008-11-22 17:14:40 +0000
@@ -41,11 +41,13 @@
* Allow `Host(Name)' in ssh config file to have trailing comment.
* Fixed perl -I/-x completion, thanks to Freddy Vulto
(Closes: #504547)
+ * README updated: explain how to use bash-completion correctly.
+ (Closes: #482383)
* debian/links fixed (Closes: #494292)
* debian/control:
- fixed typo in the long description
- -- David Paleino <d.paleino at gmail.com> Sat, 22 Nov 2008 17:38:54 +0100
+ -- David Paleino <d.paleino at gmail.com> Sat, 22 Nov 2008 18:13:36 +0100
bash-completion (20080705) unstable; urgency=low
More information about the Bash-completion-commits
mailing list