Skip to content

Instantly share code, notes, and snippets.

this is fine

Andy Barron AndyBarron

this is fine
Block or report user

Report or block AndyBarron

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
AndyBarron / add_to_bashrc.bash
Last active Feb 26, 2018
awesome terminal prompt
View add_to_bashrc.bash
# special thanks to
# colors stolen from
# get current branch in git repo
function parse_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ ! "${BRANCH}" == "" ]
echo " [${BRANCH}${STAT}]"
You can’t perform that action at this time.