Skip to content

Instantly share code, notes, and snippets.

@erenkabakci
Last active December 12, 2018 12:36
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 erenkabakci/d072216e0a17888abab481d656e65c65 to your computer and use it in GitHub Desktop.
Save erenkabakci/d072216e0a17888abab481d656e65c65 to your computer and use it in GitHub Desktop.
.bash_profile
####### set custom path ##############
export PATH=$PATH:~/bin
export PATH=$PATH:~/usr/local
########### terminal convenience #############
alias ls='ls -G'
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="🤘 \[\033[01;35m\]\u:\[\033[01;34m\]\W:\[\033[01;34m\]\[\033[01;32m\]\$(parse_git_branch)\$ \[\e[0m\]"
######################################
source ~/.profile
[[ -s ~/.bashrc ]] && source ~/.bashrc
################# RVM ###################
source ~/.rvm/scripts/rvm
#########################################
############## JAVA ##################
export JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home'
######################################
##### init bash completion and git completion ############
## USE curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash beforehand
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
## install shell integration for iterm2 first
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"
########################################
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment