Last active
January 6, 2022 13:54
-
-
Save uplus/eb527115399656d39a7e0e5eb4d624f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setup_my_tmp() { | |
TMPDIR=/private/my_tmp | |
sudo mkdir -p "${TMPDIR}" | |
sudo mount_tmpfs "${TMPDIR}" | |
sudo chmod 1777 "${TMPDIR}" | |
export TMPDIR | |
} | |
if [[ $(stat -c '%a' '/private/my_tmp') = 1777 ]]; then | |
export TMPDIR='/private/my_tmp' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment