Skip to content

Commit 6f1bbda

Browse files
mavaddatscop
andcommitted
docs(README): clarify language and grammar related to sourcing
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
1 parent 966a4e0 commit 6f1bbda

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,17 @@ list of operating system distributions, package names, and available versions.
1717

1818
Depending on the package, you may still
1919
need 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

3032
If you don't have the package readily available for your distribution, or
3133
you 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

4547
If your system does not use the `profile.d` directory (usually below
46-
`/etc`) mechanismi.e. does not automatically source shell scripts in
47-
ityou 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`
4850
script in `/etc/bashrc` or `~/.bashrc`.
4951

5052
The `profile.d` script provides a configuration file hook that can be

0 commit comments

Comments
 (0)