Skip to content

Instantly share code, notes, and snippets.

@unnamedd
Created April 13, 2012 22:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unnamedd/2380471 to your computer and use it in GitHub Desktop.
Save unnamedd/2380471 to your computer and use it in GitHub Desktop.
My Aliases
alias mygrep="clear && grep -Rni $1 --exclude=*.{js,css,log,sql,pyc,swp} $2"
alias greppy="clear && grep -Rni $1 --exclude=*.* --include=*.py $2"
alias grephtml="clear && grep -Rni $1 --exclude=*.* --include=*.html $2"
alias grepcss="clear && grep -Rni $1 --exclude=*.* --include=*.css $2"
alias grepjs="clear && grep -Rni $1 --exclude=*.* --include=*.js $2"
# find and delete
find . -name "*.pyc" | xargs rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment