Hacker News new | ask | show | jobs
by mendelk 3949 days ago
How would this need to be changed to work on osx?
3 comments

Just need to replace inotifywait with an FSEvents-based change watcher.
watchman (https://github.com/facebook/watchman) is cross platform.
It's less efficient, but you could just use a timed solution like watch:

   watch -n 2 'git status --short; git --no-pager diff --shortstat;'
This works on OSX:

  while :; do clear; git status --short; git --no-pager diff --shortstat; sleep 2; done