Skip to content

Instantly share code, notes, and snippets.

@nei
Last active July 16, 2019 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nei/d111ea7172ab134ee4ce5f7055d5927d to your computer and use it in GitHub Desktop.
Save nei/d111ea7172ab134ee4ce5f7055d5927d to your computer and use it in GitHub Desktop.
These are how I setup my src folder as case-sensitive on an external drive due to my shitty 128Gb macbook.
## Steps used to setup the ~/src
1. Create a virtual disk on my external hard drive
Install the script https://gist.github.com/scottsb/479bebe8b4b86bf17e2d
mkdir /Volumes/SAMSUNG/disks/
1.1. Review config
➜ src /usr/local/bin/casesafe.sh config
The behavior of the script may be modified by seting the following environment variables.
If not set the script will use sane defaults.
CASE_SAFE_MOUNT_POINT
Location where case-sensitive volume will be mounted
Current effective value: //Users/neisantos/src
CASE_SAFE_VOLUME_PATH
Location where image file should be stored
Current effective value: /Volumes/SAMSUNG/disks/.casesafe.dmg.sparseimage
CASE_SAFE_VOLUME_NAME
Name of case-sensitive workspace as visible in macOS Finder app
Current effective value: src
CASE_SAFE_VOLUME_SIZE
Maximum size of volume (will auto-grow up to this)
Current effective value: 100g
----
/usr/local/bin/casesafe.sh create
/usr/local/bin/casesafe.sh mount
2. Run Strap
STRAP_GIT_NAME="Nei Santos" STRAP_GIT_EMAIL="xxxx" STRAP_GITHUB_USER="nei" STRAP_GITHUB_TOKEN="xxxx" ~/src/strap/bin/strap.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment