Skip to content

Instantly share code, notes, and snippets.

@DBA
Created August 21, 2010 23:45
Show Gist options
  • Save DBA/543039 to your computer and use it in GitHub Desktop.
Save DBA/543039 to your computer and use it in GitHub Desktop.
export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:$PATH
export DISPLAY=:0.0
export EDITOR='mate -w'
#########
# Alias #
#########
# File system
alias lsl='ls -lah'
# TAR
# tar --exclude=".*" -pvczf compressed_file.tar.gz /path/to/directory/
alias ctar='tar --exclude=".*" -pvczf '
# Git
alias gits='git status'
alias gita='git add'
alias gitb='git branch --color'
alias gitba='git branch -a --color'
alias gitc='git commit -v'
alias gitia='git add -i'
alias gitka='gitk --all &'
alias gitco='git checkout'
alias gitpo='git push origin master'
alias gitpull='git pull origin master'
alias gitdt='git difftool -y '
# p4merge
alias rmorig="find . -name *.orig -exec /bin/rm -f '{}' \;"
# Rails
alias r='rake '
# Bundler
alias be='bundle exec '
alias ber='bundle exec rspec '
# MySql
alias mysqlc='mysql -u root -p'
# MongoDB
alias mongod='./databases/mongodb/bin/mongod &'
alias mongo='./databases/mongodb/bin/mongo'
# RVM
if [[ -s /Users/dba/.rvm/scripts/rvm ]] ; then source /Users/dba/.rvm/scripts/rvm ; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment