Bash, Zsh and fish completion support for git-flow.
The contained completion routines provide support for completing:
- git-flow init and version
- feature, hotfix and release branches
- remote feature, hotfix and release branch names
To achieve git-flow completion nirvana:
-
Install
git-flow-completion.bash. Either:-
Place it in your
bash_completion.dfolder, usually something like/etc/bash_completion.d,/usr/local/etc/bash_completion.dor~/bash_completion.d. -
Or, copy it somewhere (e.g.
~/.git-flow-completion.sh) and put the following line in the.profileor.bashrcfile in your home directory:source ~/.git-flow-completion.sh
-
-
If you are using Git < 1.7.1, you will need to edit git completion (usually
/etc/bash_completion.d/gitorgit-completion.sh) and add the following line to the$commandcase in_git:_git () { [...] case "$command" in [...] flow) _git_flow ;; *) COMPREPLY=() ;; esac }
To achieve git-flow completion nirvana:
-
Update your zsh's git-completion module to the newest verion -- available here.
-
Install
git-flow-completion.zsh. Either:-
Place it in your
.zshrc. -
Or, copy it somewhere (e.g.
~/.git-flow-completion.zsh) and put the following line in your.zshrc:source ~/.git-flow-completion.zsh -
Or, use this file as an oh-my-zsh plugin.
-
To achieve git-flow completion nirvana:
- Install
git.fishin your~/.config/fish/completionsfolder.
Copyright (c) 2011 Justin Hileman
Distributed under the MIT License