Created
April 8, 2015 04:34
-
-
Save lukemelia/8daa762da7e2bda3df12 to your computer and use it in GitHub Desktop.
When Error: watch EMFILE strikes (OS X)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This requires `brew install jq` which is a command json query. | |
I got this from @krisselden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
(for root in $(watchman watch-list | jq -r '.roots | .[]'); do watchman watch-del "$root" ; done) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get this while running that particular code on /bin/sh
parse error: Invalid numeric literal at line 1, column 7