Skip to content

Instantly share code, notes, and snippets.

@donkaban
Created March 9, 2015 11:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donkaban/a0cf0545a2adca1d28b3 to your computer and use it in GitHub Desktop.
Save donkaban/a0cf0545a2adca1d28b3 to your computer and use it in GitHub Desktop.
XCode Ram Disked
#!/bin/bash
rm -rf /Volumes/ramdisk
if [[ $(mount | awk '$3 == "/Volumes/ramdisk" {print $3}') != "" ]]; then
echo /Volumes/ramdisk is mounted
else
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://8475854`
fi
open -a Xcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment