Mac OS X 10.10 Yosemite 关闭Dashboard和Spotlight

因为Macbook没有触摸屏,所以总觉得Dashboard没什么意思,Spotlight用得也很少,因为Mac不是主力工作系统,于是寻思着关掉这两个玩意,解决一点宝贵的系统资源。

(以下操作需要在终端下操作,并需要root权限)

关闭Dashboard

defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock

或者
sudo mdutil -a -i off

关闭Spotlight

1、关闭Spotlight服务

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

2、删除Spotlight图标

cd /System/Library/CoreServices/

sudo mv Search.bundle/ Search2.bundle/

killall SystemUIServer

如果你后悔了

恢复Dashboard

defaults write com.apple.dashboard mcx-disabled -boolean NO
killall Dock

开启Spotlight服务

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
恢复Spotlight图标

cd /System/Library/CoreServices/
sudo mv Search2.bundle/ Search.bundle/