Skip to content

5kg/git-flow-completion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-flow-completion

Bash and Zsh completion support for git-flow

The contained completion routines provide support for completing:

  • git-flow init, feature, hotfix and release
  • feature, hotfix and release branches
  • remote feature branch names (for git-flow feature track)

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

About

Bash and zsh completion support for Git Flow

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%