Public Gists by lantrix

Gravatar
Fri Nov 27 19:42:22 -0800 2009
1
2
3
#Git bash completion
git_completion_script=$HOME/devel_projects/git/contrib/completion/git-completion.bash
if test -f $git_completion_script; then
gist: 243856 Git branch name in Bash Pro...
Gravatar
Thu Nov 26 22:28:14 -0800 2009
1
2
3
parse_git_branch() {
  git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
Gravatar
Tue Oct 13 17:07:56 -0700 2009