-
-
Save brandonaaron/32395 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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