Skip to content

Commit da5130a

Browse files
patricekrakowben
andauthored
Update book/A-git-in-other-environments/sections/bash.asc
Co-authored-by: Ben Straub <[email protected]>
1 parent 2ff914f commit da5130a

File tree

1 file changed

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

1 file changed

+3
-5
lines changed

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

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

7-
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.
11-
Copy it somewhere handy, like your home directory, and add this to your `.bashrc`:
7+
First, you need to get a copy of the completions file from the source code of the Git release you're using.
8+
Check your version by typing `git version`, then use `git checkout tags/vX.Y.Z`, where `vX.Y.Z` corresponds to the version of Git you are using.
9+
Copy the `contrib/completion/git-completion.bash` file somewhere handy, like your home directory, and add this to your `.bashrc`:
1210

1311
[source,console]
1412
----

0 commit comments

Comments
 (0)