]> git.friedersdorff.com Git - max/saltfiles.git/blob - states/zsh/files/zprofile
Configure a little
[max/saltfiles.git] / states / zsh / files / zprofile
1 # Make XDG_RUNTIME_DIR
2 if [ -z "${XDG_RUNTIME_DIR}" ]; then
3         export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
4         if [ ! -d "${XDG_RUNTIME_DIR}" ]; then
5                 mkdir "${XDG_RUNTIME_DIR}"
6                 chmod 0700 "${XDG_RUNTIME_DIR}"
7         fi
8 fi
9
10 # Make temporary directory
11 mkdir -p "/tmp/${USER}"
12 chmod 770 "/tmp/${USER}"