fix(init): fix `division by 0` error (#10213)

Fixes #10213
master
Marc Cornellà 5 years ago committed by GitHub
parent 57e8c959a0
commit 2ea1fa6cbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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

Loading…
Cancel
Save