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