Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@10thfloor
10thfloor / watch.sh
Last active October 8, 2015 12:53 — forked from mikesmullin/watch.sh
#!/usr/bin/env bash
# script: watch
# author: Mike Smullin <mike@smullindesign.com>
# license: GPLv3
# description:
# watches the given path for changes
# and executes a given command when changes occur
# usage:
# watch <path> <cmd...>
#