summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2021-09-24 16:50:00 +0200
committerGitHub <noreply@github.com>2021-09-24 16:50:00 +0200
commit2ea1fa6cbfc6340463906dfed589d5c976a10abb (patch)
treec7e16797a22db181c1a76e1378799b356eefa523
parent57e8c959a02ca8c2aeda3980480a50a1f82f6953 (diff)
downloadzsh-2ea1fa6cbfc6340463906dfed589d5c976a10abb.tar.gz
zsh-2ea1fa6cbfc6340463906dfed589d5c976a10abb.tar.bz2
zsh-2ea1fa6cbfc6340463906dfed589d5c976a10abb.zip
fix(init): fix `division by 0` error (#10213)
Fixes #10213
-rw-r--r--oh-my-zsh.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index 83c8f8057..545d980f0 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -14,7 +14,7 @@ fi
# Create cache and completions dir and add to $fpath
mkdir -p "$ZSH_CACHE_DIR/completions"
-(( ${fpath[(Ie)$ZSH_CACHE_DIR/completions]} )) || fpath=("$ZSH_CACHE_DIR/completions" $fpath)
+(( ${fpath[(Ie)"$ZSH_CACHE_DIR/completions"]} )) || fpath=("$ZSH_CACHE_DIR/completions" $fpath)
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then