Skip to content

Instantly share code, notes, and snippets.

@dorentus
Last active February 9, 2017 08:19
Show Gist options
  • Save dorentus/8957988 to your computer and use it in GitHub Desktop.
Save dorentus/8957988 to your computer and use it in GitHub Desktop.
ramdisk.sh
#!/bin/bash
RD=ramdisk
if [ ! -e "/Volumes/$RD" ]; then
diskutil erasevolume HFS+ "$RD" `hdiutil attach -nomount ram://16777216` # 8G
# ~/Library/Developer/Xcode
mkdir -p "/Volumes/$RD/Xcode"
# /Users/Shared/Battle.net
mkdir -p "/Volumes/$RD/wow/Battle.net"
# /Users/Shared/Blizzard
mkdir -p "/Volumes/$RD/wow/Blizzard"
# WoW's Data/Cache
mkdir -p "/Volumes/$RD/wow/Cache"
# ~/Library/Caches
mkdir -p "/Volumes/$RD/Caches"
#mkdir -p "/Volumes/$RD/Webpage Previews"
#mkdir -p "/Volumes/$RD/Google"
#mkdir -p "/Volumes/$RD/com.apple.helpd"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment