diff --git a/dots/aliases.sh b/dots/aliases.sh index b46537e..6d1ebd4 100644 --- a/dots/aliases.sh +++ b/dots/aliases.sh @@ -131,3 +131,19 @@ function run_node { function checksum { md5sum $1 | awk '{ print $1 }' } + +function hot { + if (( $# < 2 )); then + log error 'USAGE: hot [ ... ]' + else + script=$1 + shift + a=''; + + while true; do + b=`ls -l $*` + [[ $a != $b ]] && a=$b && eval $script; + sleep .5; + done + fi +}