Created
April 15, 2010 17:37
-
-
Save CodeOfficer/367394 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
# mac specific aliases ------------------------------------------ | |
alias o='open . &' | |
alias ff='open -a Firefox' | |
alias m='mate' | |
# other aliases ------------------------------------------ | |
# utility | |
alias c='clear' | |
alias ..='cd ..' | |
alias ll='ls -lAGhF' | |
cd() { builtin cd "$1"; ll; } | |
# rails | |
alias tld='tail -f log/development.log' | |
alias tlt='tail -f log/test.log' | |
alias tlp='tail -f log/production.log' | |
alias ss='script/server' | |
alias ssd='script/server --debugger' | |
alias ssp='script/server -e production' | |
alias sc='script/console' | |
alias scs='script/console --sandbox' | |
alias sg='script/generate' | |
alias sp='script/plugin' | |
alias st="touch tmp/restart.txt" | |
alias rr='rake routes' | |
alias rdfl='rake db:fixtures:load' | |
alias rdm0='rake db:migrate VERSION=0' | |
alias rdm='rake db:migrate' | |
alias rdr='rake db:rollback' | |
alias rtf='rake db:drop && rake db:create && rake db:migrate;' | |
alias rtfo='rake db:drop && rake db:create && rake db:migrate && rake db:fixtures:load' | |
# cucumber | |
alias rf='rake features' | |
function rff { | |
# For running specific features. | |
rake features FEATURE=features/"$1".feature | |
} | |
function rffl { | |
# For running specific line numbers | |
cucumber features/"$1".feature:"$2" | |
} | |
# git aliases | |
alias gb='git branch' | |
alias gba='git branch -a' | |
function gc() { | |
git commit -v -m "$*" | |
} | |
function gca() { | |
git commit -v -a -m "$*" | |
} | |
alias gd='git diff | mate' | |
alias gdc='git diff --cached' | |
alias gl='git pull' | |
alias gp='git push' | |
alias gst='git status' | |
alias ga.='git add .' | |
alias grh='git reset --hard' | |
alias grs='git reset --soft' | |
alias glpo='git log --pretty=oneline --abbrev-commit --color' | |
alias glgs='git log | git shortlog -n -s' | |
alias gweb='git-instaweb -d webrick' | |
alias gdel='git ls-files -z --deleted | git update-index -z --remove --stdin' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment