Skip to content

Instantly share code, notes, and snippets.

View andybarron's full-sized avatar

Andy Barron andybarron

View GitHub Profile
@andybarron
andybarron / README.md
Last active February 10, 2021 11:44
Andy's base zsh config
@andybarron
andybarron / add_to_bashrc.bash
Last active February 26, 2018 02:56
awesome terminal prompt
# 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}]"