Created
January 16, 2015 20:15
-
-
Save nicerobot/eac06e0ec29cdfa72ee0 to your computer and use it in GitHub Desktop.
Mac OS X 100MB RAM Disk /Volumes/shm
This file contains 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 | |
if [ -d /Volumes/shm ]; then | |
hdiutil detach /Volumes/shm | |
else | |
diskutil erasevolume HFS+ shm $(hdiutil attach -nomount ram://204800) | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment