Skip to content

Commit 2ff914f

Browse files
committed
bash.asc | Warn about the version of the source code
1 parent 6a19f03 commit 2ff914f

File tree

1 file changed

+3
-0
lines changed
  • book/A-git-in-other-environments/sections

1 file changed

+3
-0
lines changed

book/A-git-in-other-environments/sections/bash.asc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ If you're a Bash user, you can tap into some of your shell's features to make yo
55
Git actually ships with plugins for several shells, but it's not turned on by default.
66

77
First, you need to get a copy of the `contrib/completion/git-completion.bash` file out of the Git source code.
8+
Make sure to get it from the version of the source code that corresponds to the version of Git your are using.
9+
You can find the version of Git you are using with the command `git version`.
10+
You can then select the corresponding tag on the Git source code, using `git checkout tags/vX.Y.Z`, where `vX.Y.Z` corresponds to the version of Git you are using.
811
Copy it somewhere handy, like your home directory, and add this to your `.bashrc`:
912

1013
[source,console]

0 commit comments

Comments
 (0)