You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/A-git-in-other-environments/sections/bash.asc
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,9 @@
4
4
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.
5
5
Git actually ships with plugins for several shells, but it's not turned on by default.
6
6
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`:
0 commit comments