diff --git a/bash/bashrc b/bash/bashrc index 433d9ec..798495b 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -235,6 +235,10 @@ gcr() { fi } +parse_git_branch() { + git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' +} + export GOPATH=$HOME/go export PATH=$PATH:$GOPATH:$GOPATH/bin:/usr/local/go/bin export EDITOR=nvim