Created
June 24, 2011 09:23
-
-
Save mschueler/1044487 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
# cd | |
alias ..='cd ..' | |
# ls | |
alias ls="ls -F" | |
alias l="ls -lAh" | |
alias ll="ls -l" | |
alias la='ls -A' | |
# git | |
alias gl='git pull' | |
alias gp='git push' | |
alias gd='git diff' | |
alias gc='git commit' | |
alias gca='git commit -a' | |
alias gco='git checkout' | |
alias gb='git branch' | |
alias gs='git status' | |
alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm" | |
alias changelog='git log `git log -1 --format=%H -- CHANGELOG*`..; cat CHANGELOG*' | |
# rails | |
alias sc='script/console' | |
alias ss='script/server' | |
alias sg='script/generate' | |
alias a='autotest -rails' | |
alias tlog='tail -f log/development.log' | |
alias scaffold='script/generate nifty_scaffold' | |
alias migrate='rake db:migrate db:test:clone' | |
alias rst='touch tmp/restart.txt' | |
# misc | |
alias shmeme='history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head' | |
# commands starting with % for pasting from web | |
alias %=' ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment