1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-10-24 14:03:50 +08:00

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

This commit is contained in:
Robby Russell
2026-09-07 01:12:56 -07:00
committed by GitHub
parent 78cbb3fe5e
commit 992edcc17d

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...