Skip to content

Instantly share code, notes, and snippets.

@cpetschnig
Created January 6, 2012 14:07
Show Gist options
  • Save cpetschnig/1570765 to your computer and use it in GitHub Desktop.
Save cpetschnig/1570765 to your computer and use it in GitHub Desktop.
env settings
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1 $SYM/'
}
BLUE="\[\e[1;34m\]"
BLUE_="\[\e[0;34m\]"
BROWN_="\[\e[0;33m\]"
RESET="\[\e[0;0m\]"
SYM="$BLUE_Δ"
#export PS1='\[\e[0;34m\]Δ\[\e[0;33m\] #\# \[\e[0;34m\]Δ\[\e[0;33m\] \t \[\e[0;34m\]Δ\[\e[0;33m\] \u@\h \[\e[0;34m\]Δ\[\e[0;33m\] \w \[\e[0;34m\]Δ\n\[\e[1;34m\]$\[\e[0;0m\] '
export PS1="$SYM$BROWN_ #\# $SYM$BROWN_ \t $SYM$BROWN_ \u@\h $SYM$BROWN_ \w $SYM\$(parse_git_branch)\n$BLUE\$$RESET "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment