Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
export M2_HOME=/usr/local/apache-maven-3.3.1
export M2=$M2_HOME/bin
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
export CLOSURE_COMPILER_HOME="/Users/vishalsakaria/code/ose/google-closure/app/bower_components/closure-compiler"
export CLOSURE_LIBRARY_HOME="/Users/vishalsakaria/code/ose/google-closure/app/bower_components/closure-library"
export PATH=$M2_HOME/bin:$PATH
export PATH=$JAVA_HOME/bin:$PATH
export PATH=/usr/local/apache-maven-3.3.1/bin:$PATH
export PATH=/bin:$PATH
export PATH=/usr/local/binƒsubl:$PATH
export PATH=/bin/node_modules/phantomjs/bin:$PATH
export PATH=/usr/local/rvm/rubies/ruby-1.9.3-p429/bin/ruby:$PATH
export PATH=/usr/local/git/bin/git:$PATH
export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH
export EDITOR='subl -w'
#Change the command prompt of the Terminal
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
#Auto complete for git branch, run this first curl -o ~/.git-completion.bash
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
# PS1="\[\033[31m\] [\w]$ "
export PS1="\[\033[33m\]\w\[\033[97m\] \$(parse_git_branch):"
alias code="cd ~/code"
#Kill all process
alias killmose="kill -9 $(lsof -i:8080 -t);kill -9 $(lsof -i:8181 -t);kill -9 $(lsof -i:35729 -t)"
# alias gl='git log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate'
alias glf='git log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat'
alias glb='git log --graph --pretty=format:"%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset"'
# Bash
alias editbash="subl ~/.bash_profile"
alias reloadbash=". ~/.bash_profile"
#Make directory and go into it
function md () { mkdir -p "$@" && cd "$@"; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment