X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fzsh%2Ffiles%2Fzprofile;fp=states%2Fzsh%2Ffiles%2Fzprofile;h=f182c130cb414848b5527330a5f84edc75071cfb;hb=dd0b905788ae2041f7eb8d6c18220e59d951c5f7;hp=0000000000000000000000000000000000000000;hpb=776aa1613a8712a0206ed6873d5645c7c3f2c89a;p=max%2Fsaltfiles.git diff --git a/states/zsh/files/zprofile b/states/zsh/files/zprofile new file mode 100644 index 0000000..f182c13 --- /dev/null +++ b/states/zsh/files/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}"