From ea4bacbb57baffd645d7c488baa759c14b455d97 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 22 Oct 2016 21:12:09 +1100 Subject: [PATCH] Actually create XDG_RUNTIME_DIR when the variable is set in zshenv --- zshenv | 1 + 1 file changed, 1 insertion(+) diff --git a/zshenv b/zshenv index 392ac5f..b8c89f7 100644 --- a/zshenv +++ b/zshenv @@ -8,6 +8,7 @@ # /xdg-$USER is that TMPDIR does not necessarily belong to the current user # exclusively (although it does under MacOS and PAM). [[ -z $XDG_RUNTIME_DIR ]] && XDG_RUNTIME_DIR=${TMPDIR%/}/xdg-$USER +[[ -d $XDG_RUNTIME_DIR ]] || mkdir -p $XDG_RUNTIME_DIR export XDG_CONFIG_HOME XDG_CACHE_HOME XDG_DATA_HOME XDG_RUNTIME_DIR # The real zsh config lives in XDG_CONFIG_HOME! ;)