(bash) add function to parse git branch
This commit is contained in:
parent
ef19339cad
commit
1033a876c3
1 changed files with 4 additions and 0 deletions
|
|
@ -235,6 +235,10 @@ gcr() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
parse_git_branch() {
|
||||||
|
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
|
||||||
|
}
|
||||||
|
|
||||||
export GOPATH=$HOME/go
|
export GOPATH=$HOME/go
|
||||||
export PATH=$PATH:$GOPATH:$GOPATH/bin:/usr/local/go/bin
|
export PATH=$PATH:$GOPATH:$GOPATH/bin:/usr/local/go/bin
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue