From 7172209258bdbb25ba4d43eba17f50d72719bf75 Mon Sep 17 00:00:00 2001 From: sev Date: Mon, 11 May 2020 19:32:17 -0500 Subject: [PATCH] do not hardcode /tmp in .zprofile --- base/.zprofile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/.zprofile b/base/.zprofile index 425a48c..aa57163 100644 --- a/base/.zprofile +++ b/base/.zprofile @@ -1,10 +1,11 @@ #XXX: ensure we override /etc/profile, gets loaded after .zshenv source ~/.zshenv -t="/tmp/home-$LOGNAME" +t="${TMPDIR:-/tmp}/home-$LOGNAME" h="$HOME/tmp" if [[ ! -e "$t" ]] { mkdir -m 700 "$t" > /dev/null 2>&1 + #TODO: check if dir exists after mkdir } #allow opaque entries to override if [[ ! -e "$h" ]] { -- 2.47.0