Mac OS 实时查看当前文件夹下文件的变化

每隔 0.5 秒输出当前 .git 目录的文件

watch -n .5 "tree .git"

需要安装 watch 和 tree 命令,

brew install watch
brew install tree
原文地址:https://www.cnblogs.com/ryanzheng/p/14669614.html