Skip to content

Instantly share code, notes, and snippets.

@twalling
Created September 29, 2016 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twalling/f28f327aa4fc815fea1d4f8d5fa3ec15 to your computer and use it in GitHub Desktop.
Save twalling/f28f327aa4fc815fea1d4f8d5fa3ec15 to your computer and use it in GitHub Desktop.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\[\033[0;35m\]\h\[\033[0;33m\] \W\[\033[31m\]\$(parse_git_branch)\[\033[00m\]: "
export CLICOLOR=1
export TERM=xterm-color
export LSCOLORS=ExFxCxDxBxegedabagacad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment