File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
book/A-git-in-other-environments/sections Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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
- 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` :
9
10
10
11
[source,console]
11
12
----
You can’t perform that action at this time.
0 commit comments