Skip to content

Instantly share code, notes, and snippets.

View wesleyit's full-sized avatar

Wesley Rodrigues wesleyit

View GitHub Profile
@lc512k
lc512k / .profile
Last active August 29, 2015 14:08
my .profile
export JAVA_HOME=$(/usr/libexec/java_home -v1.7)
export MAVEN_OPTS="-Xmx256m"
export PATH="/opt/mvn/bin:$PATH"
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/sbin:$PATH" #MacPorts
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\033[0;33m\]\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "