diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`
where XXXXX
is the size of the RAM disk in terms of memory blocks.
Notes:
#!/bin/sh | |
# Usage example: ./edit_sinon_docs.sh stubs 4.1.1 | |
# Will open stubs.md from 4.1.1 for editing and propagate the changes to later versions. | |
# Make sure you have SINON_HOME pointing to the repository root. | |
# You'll need git and the npm "semver" package installed (npm i -g semver) | |
cd $SINON_HOME/docs | |
FILENAME=$1.md |