Skip to content

Instantly share code, notes, and snippets.

@banyudu
Created February 21, 2020 16:20
Show Gist options
  • Select an option

  • Save banyudu/3551356fa95e90b66b7034d1857eaa02 to your computer and use it in GitHub Desktop.

Select an option

Save banyudu/3551356fa95e90b66b7034d1857eaa02 to your computer and use it in GitHub Desktop.
macOS中对指定目录禁用 mds 索引
在开发前端应用时,经常会安装 node_modules,文件系统中突然增加很多细碎的文件。
有时候这会触发macOS的自动索引,即 mds 进程,耗费大量的CPU。
有一个方法可以禁用mds对此目录的监听,建立一个名为 .metadata_never_index 的文件即可
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment