Skip to content

Instantly share code, notes, and snippets.

@dpwiz
Created December 6, 2011 19:29
Show Gist options
  • Save dpwiz/1439568 to your computer and use it in GitHub Desktop.
Save dpwiz/1439568 to your computer and use it in GitHub Desktop.
Run some stuff after modifications in current directory.
alias psg="ps aux|head -n1; ps aux | egrep -v 'egrep --color' | egrep --color=auto -i --color"
while true; do
clear
$@
inotifywait -qq -e modify -r .
sleep 0.5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment