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