Skip to content

Instantly share code, notes, and snippets.

@phatduckk
Created August 31, 2010 22:51
Show Gist options
  • Save phatduckk/559918 to your computer and use it in GitHub Desktop.
Save phatduckk/559918 to your computer and use it in GitHub Desktop.
YELLOW="\[\033[1;33m\]"
PINK="\[\e[1;35m\]"
GREEN="\[\e[1;32m\]"
BLUE="\[\e[1;36m\]"
PLAIN="\[\e[m\]"
BLACK="\[\e[1;30m\]"
export LSCOLORS="Exfxcxdxbxegedabagacad"
alias ls="ls -G"
function parse_git_branch {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export M2_HOME=/usr/local/maven
export PATH=/usr/local/bin:/opt/local/bin:$PATH
#export PS1="\[\e[36;1m\]\u@\[\e[32;1m\]\H\e[0m:\[\e[0m\]\e[35;1m\w\e[0m $YELLOW\$(parse_git_branch)\e[0m\] > "
export PS1="${BLUE}\u@${GREEN}\H:${PINK}\w$YELLOW\$(parse_git_branch)${BLACK} $ ${PLAIN}"
# git autocomplete
source /usr/local/git/contrib/completion/git-completion.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment