diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2020-05-24 13:48:44 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2020-05-24 13:48:44 +0100 |
| commit | a3dca1c423e92611b3c050bde00e748e76536847 (patch) | |
| tree | 0be5c1706c31b58ab316457a7fce8508ebf46299 /dotfiles-darwin/zsh/env | |
| parent | 74c402fdf2e76d82f317628edf17156022d6e7e2 (diff) | |
darwin/zsh: Create ${XDG_RUNTIME_DIR} if needed
Diffstat (limited to 'dotfiles-darwin/zsh/env')
| -rw-r--r-- | dotfiles-darwin/zsh/env | 2 |
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} |
