Created
November 3, 2016 19:28
-
-
Save guilhermef/acf7c06cc0f29764a9b87c20db142e5b to your computer and use it in GitHub Desktop.
Stop spotify from destroying your SSD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'Creating Ram Disk' | |
diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nomount ram://102400` | |
echo 'Removing old spotify Cache' | |
rm -rf ~/Library/Application\ Support/Spotify/PersistentCache | |
echo 'Giving spotify something to chew on' | |
ln -s /Volumes/RAM\ Disk ~/Library/Application\ Support/Spotify/PersistentCache | |
echo 'Done!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment