Reformulation of instructions for Bash installation with git < 1.7.1 #19

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@nhuray
nhuray commented Jul 13, 2012

Hi Justin,

I'd like to submit you a pull request to clarify the installation of git-flow-completion for a bash environment for a git version < 1.7.1.

Cheers,

Nicolas

@bobthecow bobthecow commented on the diff Jul 13, 2012
README.markdown
@@ -30,10 +30,17 @@ To achieve git-flow completion nirvana:
source ~/.git-flow-completion.sh
- 2. If you are using Git < 1.7.1: Edit git-completion.sh and add the following line to the giant
- $command case in _git:
-
- flow) _git_flow ;;
+ 2. If you are using Git < 1.7.1 you have to edit `/etc/bash_completion.d/git` (or `git-completion.sh`) and add the following line in `_git` function:
@bobthecow
bobthecow Jul 13, 2012 owner

Except it's not always there. In fact, it's often not there. This is very OS and distro dependent, unfortunately :-/

Maybe something like:

If you are using Git < 1.7.1, you will need to edit git completion (usually /etc/bash_completion.d/git or git-completion.sh) and add the following line to the $command case in _git:

@nhuray
nhuray Jul 13, 2012

The formulation is really clear. Ok for me !!

@bobthecow
Owner

Merged into develop, this will go into the next release.

@bobthecow bobthecow closed this Jul 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment