Skip to content

Instantly share code, notes, and snippets.

@CyberShadow
Created April 6, 2018 15:38
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 CyberShadow/2e8f01895c248111c171e982313bb008 to your computer and use it in GitHub Desktop.
Save CyberShadow/2e8f01895c248111c171e982313bb008 to your computer and use it in GitHub Desktop.
Watch DustMite changes
#!/bin/zsh
set -eu
setopt null_glob
if [ -z ${IN_WATCH+x} ]
then
export IN_WATCH=1
watch -c -n 0.1 "$0" "$@"
else
clear
ls -al "$1".reduced/**/*.d || true
for DIR in "$1.test" "$1".lookahead.*
do
if test -e "$DIR"
then
colordiff -ru "$1".reduced "$DIR" || true
echo
echo
fi
done
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment