From a1ec96d125ad421bc291563378b96711689cb1b8 Mon Sep 17 00:00:00 2001
From: rutriff <mail@alextri.ru>
Date: Wed, 28 Oct 2020 20:31:26 +0300
Subject: fix(af-magic): add space before git and hg information (#9396)

Closes #9396
---
 themes/af-magic.zsh-theme | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'themes')

diff --git a/themes/af-magic.zsh-theme b/themes/af-magic.zsh-theme
index d939d546f..2ef9b02d7 100644
--- a/themes/af-magic.zsh-theme
+++ b/themes/af-magic.zsh-theme
@@ -30,13 +30,13 @@ fi
 RPS1+=" ${FG[237]}%n@%m%{$reset_color%}"
 
 # git settings
-ZSH_THEME_GIT_PROMPT_PREFIX="${FG[075]}(${FG[078]}"
+ZSH_THEME_GIT_PROMPT_PREFIX=" ${FG[075]}(${FG[078]}"
 ZSH_THEME_GIT_PROMPT_CLEAN=""
 ZSH_THEME_GIT_PROMPT_DIRTY="${FG[214]}*%{$reset_color%}"
 ZSH_THEME_GIT_PROMPT_SUFFIX="${FG[075]})%{$reset_color%}"
 
 # hg settings
-ZSH_THEME_HG_PROMPT_PREFIX="${FG[075]}(${FG[078]}"
+ZSH_THEME_HG_PROMPT_PREFIX=" ${FG[075]}(${FG[078]}"
 ZSH_THEME_HG_PROMPT_CLEAN=""
 ZSH_THEME_HG_PROMPT_DIRTY="${FG[214]}*%{$reset_color%}"
 ZSH_THEME_HG_PROMPT_SUFFIX="${FG[075]})%{$reset_color%}"
-- 
cgit v1.2.3-70-g09d2


From 96e473a1d65cf3a093be2c742eea427706f18c01 Mon Sep 17 00:00:00 2001
From: Marc Cornellà <hello@mcornella.com>
Date: Sun, 26 Dec 2021 19:24:19 +0100
Subject: 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
---
 themes/random.zsh-theme | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'themes')

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
-- 
cgit v1.2.3-70-g09d2


From 634296be3c985ed475ffbc1c0ffabe7ebd698808 Mon Sep 17 00:00:00 2001
From: Marc Cornellà <hello@mcornella.com>
Date: Tue, 28 Dec 2021 11:04:13 +0100
Subject: fix(random): fix negated logic in `ZSH_THEME_RANDOM_QUIET`

---
 themes/random.zsh-theme | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'themes')

diff --git a/themes/random.zsh-theme b/themes/random.zsh-theme
index 173d5b33f..28af84e23 100644
--- a/themes/random.zsh-theme
+++ b/themes/random.zsh-theme
@@ -42,6 +42,6 @@ else
   return 1
 fi
 
-if [[ "$ZSH_THEME_RANDOM_QUIET" = true ]]; then
+if [[ "$ZSH_THEME_RANDOM_QUIET" != true ]]; then
   echo "[oh-my-zsh] Random theme '${RANDOM_THEME}' loaded"
 fi
-- 
cgit v1.2.3-70-g09d2