GUIDE

The road ahead will be long and our climb will be steep

Clear Watchman Watch-list

| Comments

Watchman: https://github.com/facebook/watchman

  • create file clear_watchman_list.rb in HOME folder.
1
2
3
4
5
6
require 'json'

result = JSON.parse %x{watchman watch-list}
result["roots"].each do |dir|
  system "watchman watch-del #{dir}"
end
  • define cwl command in .profile
1
2
# clear watchman list
alias cwl="ruby $HOME/clear_watchman_list.rb"
  • use cwl if we want to empty the watchman list.

Comments