因爲Macbook沒有觸摸屏,所以總覺得Dashboard沒什麼意思,Spotlight用得也很少,因爲Mac不是主力工作系統,於是尋思着關掉這兩個玩意,解決一點寶貴的系統資源。
(以下操作需要在終端下操作,並需要root權限)
關閉Dashboard
defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock
關閉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/