Bash, Zsh and fish completion support for git-hubflow.
The contained completion routines provide support for completing:
- git hf init and version
- feature, hotfix and release branches
- remote feature, hotfix and release branch names
This is a fork of bobthecow's git-flow completions
To achieve git-hubflow completion nirvana:
-
Install
git-hubflow-completion.bash
. Either:-
Place it in your
bash_completion.d
folder, usually something like/etc/bash_completion.d
,/usr/local/etc/bash_completion.d
or~/bash_completion.d
. -
Or, copy it somewhere (e.g.
~/.git-hubflow-completion.sh
) and put the following line in the.profile
or.bashrc
file in your home directory:source ~/.git-hubflow-completion.sh
-
-
If you are using Git < 1.7.1, you will need to edit git completion (usually
/etc/bash_completion.d/git
orgit-completion.sh
) and add the following line to the$command
case in_git
:_git () { [...] case "$command" in [...] flow) _git_hf ;; *) COMPREPLY=() ;; esac }
This has not been as thoroughly tested as bash, please raise any issues you find on github, or fix and submit a pull request.
To achieve git-hubflow completion nirvana:
-
Update your zsh's git-completion module to the newest verion -- available here.
-
Install
git-hubflow-completion.zsh
. Either:-
Place it in your
.zshrc
. -
Or, copy it somewhere (e.g.
~/.git-hubflow-completion.zsh
) and put the following line in your.zshrc
:source ~/.git-hubflow-completion.zsh
-
Or, use this file as an oh-my-zsh plugin. #This is entirely untested
-
To achieve git-hubflow completion nirvana:
- Install
git.fish
in your~/.config/fish/completions
folder.
Forked by Gemma Hentsch
Copyright (c) 2011 Justin Hileman
Distributed under the MIT License