Skip to content

Instantly share code, notes, and snippets.

@paulmars
Last active November 1, 2022 12:06
Show Gist options
  • Select an option

  • Save paulmars/2472987 to your computer and use it in GitHub Desktop.

Select an option

Save paulmars/2472987 to your computer and use it in GitHub Desktop.
Spotlight & Time Machine Excludes
You can increase your battery life by removing a couple of folders from your Spotlight index.
Here is my list of folders which made the most difference.
Please fork and update this gist with any additional folders that you've found which are worth removing.
# Most of this was done using Grandperspectiv, which I love
http://grandperspectiv.sourceforge.net/
http://grandperspectiv.sourceforge.net/HelpDocumentation/HowToAnalyseTimeMachineBackups.html
sudo tmutil addexclusion ~/Downloads
# Sometimes, huge and useless files
~/Downloads
# Ruby Developers
~/.gem
~/.rbenv
# Where I keep Vagrant VMs
~/.vagrant
# Where I keep my VMWare VMs
~/VMs
# Backblaze stores tons of data daily here
/Library/Backblaze
# Mac/iOS Developer
/Library/Developer
# Steam users
~/Libary/Application Support/Steam
# Spotify
/Users/paul/Library/Caches/com.spotify.client
# Dropbox cache (can be one large file)
~/.dropbox
# Chrome db settigns and
~/Libary/Application Support/Chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment