tgz/blog

fswatch_and_rsync

Closed this issue · 0 comments

tgz commented

http://imqsc.xyz/2018/10/16/fswatch-and-rsync/

最近觉得 mac 编译项目越来越慢,由于是 c++ 项目,可以用 linux 编译,于是整了一个性能稍好的 ubuntu,但是开发还是在 mac 上 怎么方便 & 快捷地把文件同步到编译机上,是个问题 之前 rsync 也用过很多次了,这里就使用 fswatch + rsync 的方案 1. mac 上安装 fswatch1brew install fswatch 2. 编写脚本,监控文件