Code Monkey home page Code Monkey logo

git-flow-completion's Introduction

git-flow-completion

Bash, Zsh and fish completion support for git-flow (AVH Edition).

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

Changelog

Current develop

  • Update bash completion script.
    We added completion of flags and (sub)commands.

Installation for Bash

To achieve git-flow completion nirvana:

  1. Install git-completion.

  2. Install git-flow-completion.bash. Either:

    1. 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.

    2. Or, copy it somewhere (e.g. ~/git-flow-completion.bash) and put the following line in the .profile or .bashrc file in your home directory:

       source ~/git-flow-completion.bash
      
  3. If you are using Git < 1.7.1, you will need to edit git completion (usually /etc/bash_completion.d/git or git-completion.sh) and add the following line to the $command case in _git:

    _git ()
    {
            [...]
            case "$command" in
               [...]
               flow)        _git_flow ;;		
               *)           COMPREPLY=() ;;
            esac
    }
    

Installation for Zsh

To achieve git-flow completion nirvana:

  1. Update your zsh's git-completion module to the newest version -- available here. Optional if you have an up-to-date version of zsh.

  2. Install git-flow-completion.zsh. Either:

    1. Place it in your .zshrc.

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

       source ~/.git-flow-completion.zsh
      
    3. Or, use this file as an oh-my-zsh plugin.

Installation for fish

To achieve git-flow completion nirvana:

  1. Install git.fish in your ~/.config/fish/completions folder.

The Fine Print

Author: Copyright 2012-2013 Peter van der Does.

Original Author: Copyright (c) 2011 Justin Hileman

Distributed under the MIT License

git-flow-completion's People

Contributors

alej0varas avatar bobthecow avatar chevalun avatar curiousstranger avatar gucki avatar jagipson avatar jbking avatar lasall avatar nexxtm avatar nvie avatar petervanderdoes avatar soplakanets avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

git-flow-completion's Issues

Not working inside tmux

Hi there,

Thanks for the improvements to git-flow! I'm able to successfully use it, and this completion stuff in zsh version 5.0.5 on OS X 10.9.5 in iTerm2. However, when I open tmux version 1.9a and try to do the completion it breaks (well, no errors, it just doesn't tab complete anymore)... any thoughts?

Thanks!

ZSH completion file incompatible with other git completion extensions

Hi,

The zsh completion file overrides the user-commands zstyle value. IMHO is a bad practice as it is going to cause confusion to the end user when using conflicting packages (like git-extras) or local commands. I would suggest that you fix the use of the command with something like the following. I can create a pull request if you prefer.

zstyle -g existing_commands ':completion:*:*:git:*' user-commands 
zstyle ':completion:*:*:git:*' user-commands $existing_commands flow:'provide high-level repository operations'

Thanks

Regards

No Completions

I can't seem to get any completions if I use the latest homebrew git instead of default git provided with El Capitan.

To reproduce:

  1. Using zsh and homebrew brew install git
  2. ==> Pouring git-2.8.1.el_capitan.bottle.tar.gz
  3. edit ~/.zshrc add plugins=(git) and source ~/.git-flow-completion.zsh
  4. try git flow TAB and the completion is a list of files in the directory not the flow command options.
  5. brew remove git && git --version
    git version 2.6.4 (Apple Git-63)
  6. git flow TAB and the completion is the list of git flow options:
 git flow
bugfix   -- Manage your bugfix branches.
config   -- Manage your configuration.
delete   -- Delete the branch you are currently on.
feature  -- Manage your feature branches.
finish   -- Finish the branch you are currently on.
hotfix   -- Manage your hotfix branches.
init     -- Initialize a new git repo with support for the branching model.
publish  -- Publish the branch you are currently on.
rebase   -- Rebase the branch you are currently on.
release  -- Manage your release branches.
support  -- Manage your support branches.
version  -- Shows version information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.