mac打开文件时会保存一个最近使用的路径列表——Recent Places

mac如何清空Recent Places


有时候我们需要整理Recent Places,清空或者设置最大保存长度

一、清空Recent Places
[email protected]:projects$ defaults delete -g NSNavRecentPlaces
二、如何设置Recent Places的最大保存数量
1. 设置保存数量
   [email protected]:projects$ defaults write -g NSNavRecentPlacesLimit -int NUM
  其中 NUM就是要设置的最大保存数量

2. 取消最大保存数量设置
  [email protected]:projects$ defaults delete -g NSNavRecentPlacesLimit

相关文章: