Created
October 19, 2016 17:59
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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