6bebc254e88ac9b7fdaa7491d031f82ec107e418

Author
Aliaksei Maiseyeu <jetfire6@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

af-magic: fix showing aws prompt out of the box (#8243)

Fix issue related to #7615, #7747 and #6346

After the update, aws prompt (which should be visible out of the box) disappears when a user uses a theme af-magic, because of fact that plugins are loaded before themes.
This pull request fixes issue with not showing aws prompt in theme af-magic, by appending RPROMPT in theme af-magic instead overwriting.

Diff

 1diff --git a/themes/af-magic.zsh-theme b/themes/af-magic.zsh-theme
 2index d185fa1ab1caf9c025ade77a144a944f9a932b66..30e997f8c21ddedd3f876206cf4539767b813ef8 100644
 3--- a/themes/af-magic.zsh-theme
 4+++ b/themes/af-magic.zsh-theme
 5@@ -21,9 +21,9 @@ eval my_orange='$FG[214]'
 6 # right prompt
 7 if type "virtualenv_prompt_info" > /dev/null
 8 then
 9-	RPROMPT='$FG[078]$(virtualenv_prompt_info)%{$reset_color%} $my_gray%n@%m%{$reset_color%}%'
10+	RPROMPT="${RPROMPT}"'$FG[078]$(virtualenv_prompt_info)%{$reset_color%} $my_gray%n@%m%{$reset_color%}%'
11 else
12-	RPROMPT='$my_gray%n@%m%{$reset_color%}%'
13+	RPROMPT="${RPROMPT}"'$my_gray%n@%m%{$reset_color%}%'
14 fi
15 
16 # git settings