From 2cdc712cffab31eb86bcdaadf2c40bb836eed64e Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 26 Feb 2018 10:51:09 +0000 Subject: [PATCH] zsh: do some more folder checks on startup --- zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 38dbb45..a2b40fd 100644 --- a/zshrc +++ b/zshrc @@ -1,8 +1,10 @@ # Path to config files ZSH=$XDG_CONFIG_HOME/zsh +ZSH_DATA=$XDG_DATA_HOME/zsh ZSH_CACHE=$XDG_CACHE_HOME/zsh -[[ ! -d "$ZSH" ]] && echo "Missing config dir: '$ZSH'" && return +[[ ! -d "$ZSH" ]] && echo "Missing config dir: '$ZSH'" && return [[ ! -d "$ZSH_CACHE" ]] && echo "Missing cache dir: '$ZSH_CACHE'" && return +[[ ! -d "$ZSH_DATA" ]] && echo "Missing data dir: '$ZSH_DATA'" && return # Load all of the config files in $ZSH/lib that end in .zsh for config_file ($ZSH/lib/*.zsh); do -- 2.48.1