From 3c01aba5a22741150b9f41481b9307e82459ffd2 Mon Sep 17 00:00:00 2001 From: Sergio Bruder Date: Sat, 30 Mar 2019 00:52:37 -0300 Subject: [PATCH] including DEFAULT/NONDEFAULT states for aws prompt --- powerlevel9k.zsh-theme | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 5e6ff170..23ae0047 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -333,7 +333,11 @@ prompt_anaconda() { prompt_aws() { local aws_profile="${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}" if [[ -n "$aws_profile" ]]; then - "$1_prompt_segment" "$0" "$2" red white 'AWS_ICON' 0 '' "${aws_profile//\%/%%}" + if [[ "$aws_profile" == "$POWERLEVEL9K_AWS_DEFAULT_PROFILE" ]]; then + "$1_prompt_segment" "$0_DEFAULT" "$2" "${DEFAULT_COLOR}" white 'AWS_ICON' 0 '' "${aws_profile//\%/%%}" + else + "$1_prompt_segment" "$0_NONDEFAULT" "$2" "${DEFAULT_COLOR}" white 'AWS_ICON' 0 '' "${aws_profile//\%/%%}" + fi fi }