Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5945702c13
Fetching contributors…

Cannot retrieve contributors at this time

65 lines (37 sloc) 1.747 kb

git-flow-completion

Bash and Zsh 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

Installation for Bash

To achieve git-flow completion nirvana:

  1. Install git-completion.

  2. Install this file. Either:

    a. Place it in a bash_completion.d folder:

    • /etc/bash_completion.d
    • /usr/local/etc/bash_completion.d
    • ~/bash_completion.d

    b. Or, copy it somewhere (e.g. ~/.git-flow-completion.sh) and put the following line in your .bashrc:

       source ~/.git-flow-completion.sh
    
  3. 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 ;;
    

Installation for Zsh

To achieve git-flow completion nirvana:

  1. Update your zsh's git-completion module to the newest verion -- available here.

  2. Install this file. Either:

    a. Place it in your .zshrc:

    b. Or, copy it somewhere (e.g. ~/.git-flow-completion.zsh) and put the following line in your .zshrc:

       source ~/.git-flow-completion.zsh
    

    c. Or, use this file as an oh-my-zsh plugin.

The Fine Print

Copyright (c) 2010 Justin Hileman

Distributed under the MIT License

Jump to Line
Something went wrong with that request. Please try again.