Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Don't error if $OPTS is not yet defined in .zinit-compinit call
This codepath was triggered when deleting the whole `~/.zinit/plugins` dir: during recreation in `.zinit-prepare-home`, `.zinit-compinit &> /dev/null` would be called and the sourcing of `zinit.zsh` would error out with ``` +.zinit-compinit:2> [[.zinit-compinit:2: bad math expression: operand expected at `/Users/jan...' -n '' ]] ``` As the error was redirected to `/dev/null`, this never showed up. Any zinit install call during that session would not run any hooks as they were not yet registered. The next session would then be fine because the plugins dir would exist.
- Loading branch information