From 345c2cdb10abd925da4b990050b160f120ae4d5e Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Sat, 28 Sep 2024 20:52:44 +0100 Subject: [PATCH] Add zprofile --- dot_zprofile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 dot_zprofile diff --git a/dot_zprofile b/dot_zprofile new file mode 100644 index 0000000..f182c13 --- /dev/null +++ b/dot_zprofile @@ -0,0 +1,12 @@ +# Make XDG_RUNTIME_DIR +if [ -z "${XDG_RUNTIME_DIR}" ]; then + export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir + if [ ! -d "${XDG_RUNTIME_DIR}" ]; then + mkdir "${XDG_RUNTIME_DIR}" + chmod 0700 "${XDG_RUNTIME_DIR}" + fi +fi + +# Make temporary directory +mkdir -p "/tmp/${USER}" +chmod 770 "/tmp/${USER}"