Set TMP if alternate /System/tmp exists
authorAndrew DeFaria <Andrew@DeFaria.com>
Tue, 15 Feb 2022 17:59:53 +0000 (09:59 -0800)
committerAndrew DeFaria <Andrew@DeFaria.com>
Tue, 15 Feb 2022 17:59:53 +0000 (09:59 -0800)
rc/bash_login

index c59c2b7..b587baf 100644 (file)
@@ -324,8 +324,13 @@ done
 set_prompt
 
 # Set display to local
-
 export DISPLAY=${DISPLAY:-:0}
+
+# New tmp location
+if [ -d /System/tmp ]; then
+  export TMP=/System/tmp
+fi
+
 # Reset home in case it changed
 HOME=$saved_home