Skip to content

Instantly share code, notes, and snippets.

@tsycho
Last active January 3, 2016 17:10
Show Gist options
  • Save tsycho/440db825909575ccc543 to your computer and use it in GitHub Desktop.
Save tsycho/440db825909575ccc543 to your computer and use it in GitHub Desktop.
My .bash_profile
source ~/.git-completion.bash
export PS1='\u:\W\$ '
export CLICOLOR=1 #ls with colors
# export EDITOR='vim -f'
# export EDITOR='subl -w'
export PATH=/usr/local/bin:$HOME/bin:$PATH
export PATH=$PATH:/setups/homebrew/bin
# Utils
alias dusage='du -c -m -d 1'
alias purgeallbuilds='rm -rf ~/library/Developer/Xcode/DerivedData/*'
alias atom='/Applications/Atom.app/Contents/MacOS/Atom'
# git
alias gdiff='git difftool -y'
alias gdc='git diff --color'
alias gi='gem install --no-rdoc --no-ri'
alias ff='find . -name'
alias ll='ls -l'
alias la='ls -al'
# Switch branches, or show the list of branches if no branch name given
function br {
if [ $1 ]; then
git checkout $1
else
git branch
fi
}
export -f br
[[ -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