Created
April 14, 2011 23:51
-
-
Save stopdropandrew/920854 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
alias oops="rfind breakpoint; rfind debugger" | |
function rfindhelper () { | |
find $1 -name '*.rb' -o -name '*.rhtml' -o -name '*.erb' -o -name '*.rjs' -o -name '*.builder' -o -name '*.js' | xargs grep -i "$2" | |
} | |
function rfind () { | |
rfindhelper "app config test lib" "$*" | |
} | |
function rfindrails () { | |
rfindhelper "vendor/rails" "$*" | |
} | |
function rfinddir () { | |
rfindhelper $1 "$2" | |
} | |
function rfindas () { find "lib/flash" -name *.as | xargs grep -i "$*" ;} | |
function rfindjs () { find "public/javascripts" -name *.js | xargs grep -i "$*" ;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment