Skip to content

Latest commit

 

History

History
64 lines (37 loc) · 1.71 KB

README.markdown

File metadata and controls

64 lines (37 loc) · 1.71 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) 2011 Justin Hileman

Distributed under the MIT License