Skip to content

Instantly share code, notes, and snippets.

View aboyon's full-sized avatar

David Silveira aboyon

View GitHub Profile

Keybase proof

I hereby claim:

  • I am aboyon on github.
  • I am dsilveira (https://keybase.io/dsilveira) on keybase.
  • I have a public key ASCNVBLe7GhVk_RVyEzd97FfOttT2Um6Te92c8N_stGyrQo

To claim this, I am signing this object:

# git-related functions in here
git_branch () {
GIT_BRANCH="$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')"
if [[ -n "$GIT_BRANCH" ]] ; then
echo ":($GIT_BRANCH) "
fi
}
empty_branch () {
name="$1"