Skip to content

Instantly share code, notes, and snippets.

@lukemelia
Created April 8, 2015 04:34
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukemelia/8daa762da7e2bda3df12 to your computer and use it in GitHub Desktop.
Save lukemelia/8daa762da7e2bda3df12 to your computer and use it in GitHub Desktop.
When Error: watch EMFILE strikes (OS X)
This requires `brew install jq` which is a command json query.
I got this from @krisselden
#!/bin/sh
(for root in $(watchman watch-list | jq -r '.roots | .[]'); do watchman watch-del "$root" ; done)
@flynsequeira
Copy link

I get this while running that particular code on /bin/sh
parse error: Invalid numeric literal at line 1, column 7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment