Skip to content

Instantly share code, notes, and snippets.

@brandonaaron
Forked from burin/gist:10752
Created December 5, 2008 16:37
Show Gist options
  • Save brandonaaron/32395 to your computer and use it in GitHub Desktop.
Save brandonaaron/32395 to your computer and use it in GitHub Desktop.
# environment variables
export PATH=/usr/local/bin:$PATH
export PATH="$HOME/bin:$PATH"
export PATH=/usr/local/git/bin:$PATH
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
export MANPATH=/usr/local/git/man:$MANPATH
export EDITOR="mate -w"
export SVN_EDITOR="mate -w"
# aliases
alias l="ls -hG"
alias ll="ls -alhG"
alias ls="ls -hG"
alias battery='ioreg -w0 -l | grep Capacity | cut -d " " -f 17-50'
alias flushdns="dscacheutil -flushcache"
# make tab cycle through commands instead of listing
bind '"\t":menu-complete'
# Subversion
alias sup='if [[ "`svn st -u db/migrate | grep \"\\.rb\"`" ]]; then svn up; migrate; else echo "No migration necessary :)"; svn up; fi'
alias sci='svn ci'
alias sco='svn co'
alias sst='svn status'
alias saa='svn status | grep "^\?" | awk "{print \$2}" | xargs svn add'
alias sra='svn status | grep "^\!" | awk "{print \$2}" | xargs svn remove'
alias signore='svn propset svn:ignore'
# Ruby
alias irb='irb --readline --simple-prompt -r irb/completion'
# Rails
alias ss='./script/server'
alias sc='./script/console'
alias sg='./script/generate'
alias migrate='echo "Migrating..."; rake db:migrate; echo "Preparing test database.."; rake db:test:prepare'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment