From: Andrew DeFaria Date: Tue, 15 Feb 2022 17:59:53 +0000 (-0800) Subject: Set TMP if alternate /System/tmp exists X-Git-Url: https://defaria.com/gitweb/?a=commitdiff_plain;h=c5e829f19b4b6f92d2e58803af360687effafe5a;p=clearscm.git Set TMP if alternate /System/tmp exists --- diff --git a/rc/bash_login b/rc/bash_login index c59c2b7..b587baf 100644 --- a/rc/bash_login +++ b/rc/bash_login @@ -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