Describe the bug
I use the nounset option set -u in my terminals to prevent silly mistakes. When using this option Oh My Zsh throws errors due to unset variables.
Steps to reproduce
To reproduce, insert
into the top of your ~/.zshrc and open a new terminal. You will see errors like
_defer_async_git_register:2: RPROMPT: parameter not set
git_prompt_info:1: _omz_git_prompt_info: parameter not set
Expected behavior
There should be no shell errors
Screenshots and recordings
OS / Linux distribution
macOS 26.4.1
Zsh version
5.9
Oh My Zsh version
master (e42ac8c)
Terminal emulator
iTerm2
If using WSL on Windows, which version of WSL
None
Additional context
No response
Describe the bug
I use the nounset option
set -uin my terminals to prevent silly mistakes. When using this option Oh My Zsh throws errors due to unset variables.Steps to reproduce
To reproduce, insert
into the top of your
~/.zshrcand open a new terminal. You will see errors likeExpected behavior
There should be no shell errors
Screenshots and recordings
OS / Linux distribution
macOS 26.4.1
Zsh version
5.9
Oh My Zsh version
master (e42ac8c)
Terminal emulator
iTerm2
If using WSL on Windows, which version of WSL
None
Additional context
No response