Skip to content

Instantly share code, notes, and snippets.

@jsmarkus
Created April 4, 2012 07:07
Show Gist options
  • Save jsmarkus/2299399 to your computer and use it in GitHub Desktop.
Save jsmarkus/2299399 to your computer and use it in GitHub Desktop.
#!/bin/sh
FILES=`git status --porcelain | grep -P '^[\sAM]+' | sed 's/\(^\s*[AM]\+\)\s\+//'`
G="grep -n -H --color=auto -P"
RED=`echo -e '\033[41m\033[37m'`
NORMAL=`echo -e '\033[0m'`
for file in `echo $FILES | sort -u`
do
$G console $file
$G var_dump $file
$G debugger $file
$G "function.+{" $file
$G "class.+{" $file
$G "\s+$" $file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment