Skip to content

Instantly share code, notes, and snippets.

@jonmagic
Created February 24, 2009 21:39
Show Gist options
  • Save jonmagic/69803 to your computer and use it in GitHub Desktop.
Save jonmagic/69803 to your computer and use it in GitHub Desktop.
# cat .profile
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
export PATH=/opt/local/bin:/opt/local/sbin:/Library/PostgreSQL/8.3/bin:$PATH
export MANPATH=/opt/local/share/man:$MANPATH
export CLICOLOR=1
export TERM=xterm-color
# use yellow for directories
export LSCOLORS=dxfxcxdxbxegedabagacad
function parse_git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "("${ref#refs/heads/}")"
}
PURPLE="\[\033[0;35m\]"
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
WHITE="\[\033[0;37m\]"
PS1="\n$PURPLE\h::\u $RED\$(date +%H:%M) $WHITE\w $YELLOW\$(parse_git_branch) $GREEN\n# "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment