From eff48e1e541d871b8c0a57d0e359dad13c5f82c2 Mon Sep 17 00:00:00 2001 From: buffet Date: Sat, 8 May 2021 22:24:52 +0000 Subject: [PATCH] Only source .profile once --- profile/.profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/profile/.profile b/profile/.profile index bdf1613..597bf05 100644 --- a/profile/.profile +++ b/profile/.profile @@ -1,4 +1,8 @@ -test -z "$PROFILEREAD" && . /etc/profile || true +[ "$READPROFILE" ] && return + +. /etc/profile || true + +export READPROFILE=1 export XDG_CONFIG_HOME="$HOME/.config" export XDG_CACHE_HOME="$HOME/.cache"