Skip to content

Instantly share code, notes, and snippets.

@geekbass
Created October 19, 2016 17:59
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 geekbass/7f0265013fb314a25a1f8d031299769c to your computer and use it in GitHub Desktop.
Save geekbass/7f0265013fb314a25a1f8d031299769c to your computer and use it in GitHub Desktop.
bash profile for macbook (prompt, python, spark and alias). Copy and paste to .bash_profile
# Add userspace python binaries to path - 2016.07.12
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/wb/Library/Python/2.7/bin
# java home
export JAVA_HOME=`/usr/libexec/java_home`
# Alias List
alias ll='ls -l'
# Bash prompt
function parse_git_branch {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\n\[\033[0;36m\][\d \t] \[\033[0;35m\]\w\n \[\033[0;32m\]\u@\h \[\033[0;31m\]\$(parse_git_branch) > \[$(tput sgr0)\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment