Skip to content

Instantly share code, notes, and snippets.

@Artistan
Created November 15, 2013 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Artistan/7492217 to your computer and use it in GitHub Desktop.
Save Artistan/7492217 to your computer and use it in GitHub Desktop.
bash_profile settings
# USE cg img; // will show 2 lines before and 15 lines after match.
alias cg="find . -path '*/.svn/*' -prune -o -path '*/.git/*' -prune -o -path '*compiled*' -prune -o -type f -print | xargs -e grep -A 15 -B 2 --color -rnisIe "
# USE f img;
alias f="find . -path '*/.svn/*' -prune -o -path '*/.git/*' -prune -o -path '*compiled*' -prune -o -type f -print | xargs -e grep --color -rnisIe "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment