summaryrefslogtreecommitdiff
path: root/dotfiles-darwin/zsh
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2020-05-24 13:48:44 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2020-05-24 13:48:44 +0100
commita3dca1c423e92611b3c050bde00e748e76536847 (patch)
tree0be5c1706c31b58ab316457a7fce8508ebf46299 /dotfiles-darwin/zsh
parent74c402fdf2e76d82f317628edf17156022d6e7e2 (diff)
darwin/zsh: Create ${XDG_RUNTIME_DIR} if needed
Diffstat (limited to 'dotfiles-darwin/zsh')
-rw-r--r--dotfiles-darwin/zsh/env2
1 files changed, 2 insertions, 0 deletions
diff --git a/dotfiles-darwin/zsh/env b/dotfiles-darwin/zsh/env
index 3bcf9ea..49e303e 100644
--- a/dotfiles-darwin/zsh/env
+++ b/dotfiles-darwin/zsh/env
@@ -5,3 +5,5 @@ export XDG_CACHE_HOME=~/Library/Caches
export XDG_CONFIG_HOME=~/Library/Preferences
export XDG_DATA_HOME=~/Library
export XDG_RUNTIME_DIR=${TMPDIR}org.awhk.runtime-dir
+
+[[ ! -d ${XDG_RUNTIME_DIR} ]] && mkdir -p ${XDG_RUNTIME_DIR}