Skip to content

Instantly share code, notes, and snippets.

@carlashley
Last active March 30, 2023 17:07
Show Gist options
  • Save carlashley/20c4bcb07f106766c63a1cb325c1df59 to your computer and use it in GitHub Desktop.
Save carlashley/20c4bcb07f106766c63a1cb325c1df59 to your computer and use it in GitHub Desktop.
Darwin Environment Variables
#!/bin/sh
# User path
/usr/bin/getconf DARWIN_USER_DIR
# Temp directory
# Note - $TMPDIR is the same as this
/usr/bin/getconf DARWIN_USER_TEMP_DIR
# Cache directory
/usr/bin/getconf DARWIN_USER_CACHE_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment