Skip to content

boiler23/git-flow-completion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 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 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
    

    c. For Mac OS users, add the following lines to file .profile in your home directory:

       if [ -f /Users/bogdanovichiy/Projects/git-flow-completion/git-flow-completion.bash ]; then
         . /Users/bogdanovichiy/Projects/git-flow-completion/git-flow-completion.bash
       fi
    

    And restart shell.

  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

About

Bash and Zsh completion support for git-flow.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%