Friday, December 19, 2014

Git Completion and Git Flow Completion

Just updated git this morning from because of a security issue and happy that what I have in my .bashrc still working. A lot trimmed out, but here is the gist of it:

# git provided by git_osx_installer from git-scm.com
export PATH=/usr/local/git/bin:/usr/local/bin:/usr/local/sbin:$PATH
source /usr/local/git/contrib/completion/git-completion.bash
# if fails, do find /usr/local/Cellar -name git-flow-completion.bash to find path and set it here
source /usr/local/Cellar/git-flow-avh/1.8.0/etc/bash_completion.d/git-flow-completion.bash
source /usr/local/git/contrib/completion/git-prompt.sh
PS1='\h:\W$(__git_ps1 " (%s)") \u\$ ';

This assumes that you have latest git from git-scm.com and are using git flow and git flow completion via brew install git-flow-avh.

Update: April 2015

Please see my latest post on this topic.

No comments: