Add zprofile

This commit is contained in:
Maximilian Friedersdorff 2024-09-28 20:52:44 +01:00
parent f42c2e1954
commit 345c2cdb10

12
dot_zprofile Normal file
View file

@ -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}"