@@ -17,15 +17,17 @@ list of operating system distributions, package names, and available versions.
1717
1818Depending on the package, you may still
1919need to source it from either ` /etc/bashrc ` or ` ~/.bashrc ` (or any
20- other file sourcing those). You can do this by simply using:
20+ other file sourcing those). If you have _ only_ bash >= 4.2 installed, you can
21+ do this by simply using:
2122
2223``` shell
2324# Use bash-completion, if available
2425[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
2526 . /usr/share/bash-completion/bash_completion
2627```
2728
28- (if you happen to have * only* bash >= 4.2 installed, see further if not)
29+ If you have older bash versions in use, their loading of ` bash_completion `
30+ should be prevented. See further for more info.
2931
3032If you don't have the package readily available for your distribution, or
3133you simply don't want to use one, you can install bash completion using the
@@ -43,8 +45,8 @@ These commands install the completions and helpers, as well as a
4345` profile.d ` script that loads ` bash_completion ` where appropriate.
4446
4547If your system does not use the ` profile.d ` directory (usually below
46- ` /etc ` ) mechanism— i.e. does not automatically source shell scripts in
47- it— you can source the ` $sysconfdir/profile.d/bash_completion.sh `
48+ ` /etc ` ) mechanism ( i.e., does not automatically source shell scripts in
49+ it), you can source the ` $sysconfdir/profile.d/bash_completion.sh `
4850script in ` /etc/bashrc ` or ` ~/.bashrc ` .
4951
5052The ` profile.d ` script provides a configuration file hook that can be
0 commit comments