diff options
author | Marc Cornellà <hello@mcornella.com> | 2021-12-26 19:24:19 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2021-12-26 19:27:31 +0100 |
commit | 96e473a1d65cf3a093be2c742eea427706f18c01 (patch) | |
tree | f9bc0c7f39e0f3c1d647b1c5478d0b71b31f44f9 /themes | |
parent | 70dfb6ef92f3bedc460e300e94e3456942ff328c (diff) | |
download | zsh-96e473a1d65cf3a093be2c742eea427706f18c01.tar.gz zsh-96e473a1d65cf3a093be2c742eea427706f18c01.tar.bz2 zsh-96e473a1d65cf3a093be2c742eea427706f18c01.zip |
fix(random): fix `ZSH_THEME_RANDOM_QUIET` check (#10534)
BREAKING CHANGE: For consistency, `ZSH_THEME_RANDOM_QUIET` now needs to
be `true` if you want to silence the "Random theme loaded" message in the
`random` theme.
The wiki specified that 1 or true was valid, while the code just
checked whether it was set to any value. Being more strict makes
sure that we're consistent with the rest of the Settings.
Fixes #10534
Diffstat (limited to 'themes')
-rw-r--r-- | themes/random.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/random.zsh-theme b/themes/random.zsh-theme index f0b8e5c18..173d5b33f 100644 --- a/themes/random.zsh-theme +++ b/themes/random.zsh-theme @@ -42,6 +42,6 @@ else return 1 fi -if [[ -z "$ZSH_THEME_RANDOM_QUIET" ]]; then +if [[ "$ZSH_THEME_RANDOM_QUIET" = true ]]; then echo "[oh-my-zsh] Random theme '${RANDOM_THEME}' loaded" fi |