Skip to content

Instantly share code, notes, and snippets.

@dzhulk
Created September 5, 2012 11:58
Show Gist options
  • Select an option

  • Save dzhulk/3635609 to your computer and use it in GitHub Desktop.

Select an option

Save dzhulk/3635609 to your computer and use it in GitHub Desktop.
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
parse_git_branch() {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ →\ \1/'
}
export PS1="\u:\[\e[0;34m\]\W\[\e[0;31m\]\$(parse_git_branch)\[\e[m\] $ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment