Skip to content

Instantly share code, notes, and snippets.

View pyncc's full-sized avatar

Colin Lappala pyncc

View GitHub Profile
### Keybase proof
I hereby claim:
* I am pyncc on github.
* I am pyncc (https://keybase.io/pyncc) on keybase.
* I have a public key ASDxgqzD7RBiktyad4lMoQC0_FUsM0hdgKDXb9uBKXc50Ao
To claim this, I am signing this object:
STAND="$(tput rev)"
RESET="$(tput sgr0)"
git-branch() {
branch=$(git branch 2> /dev/null | grep \* | cut -d' ' -f2)
if [ $branch ];then
if [ ${#branch} -gt 25 ];then
branch="${branch:0:24}…"
fi
echo -e "⑆ $branch"