perf(init): only mkdir the cache completions dir when it's missing (#14065)

This commit is contained in:
Robby Russell
2026-09-07 10:12:56 +02:00
committed by GitHub
parent 78cbb3fe5e
commit 992edcc17d
+1 -1
View File
@@ -64,7 +64,7 @@ if [[ ! -w "$ZSH_CACHE_DIR" ]]; then
fi
# Create cache and completions dir and add to $fpath
mkdir -p "$ZSH_CACHE_DIR/completions"
[[ -d "$ZSH_CACHE_DIR/completions" ]] || mkdir -p "$ZSH_CACHE_DIR/completions"
(( ${fpath[(Ie)$ZSH_CACHE_DIR/completions]} )) || fpath=("$ZSH_CACHE_DIR/completions" $fpath)
# Check for updates on initial load...