From abf1e3b0af350affb3a09d5b1fdc6fda510f52a2 Mon Sep 17 00:00:00 2001 From: Melvyn de Kort Date: Wed, 16 Oct 2019 12:48:04 +0200 Subject: [PATCH] Also show the default profile when set --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index d1c5e9e4..5e80311a 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -935,7 +935,7 @@ prompt_anaconda() { # AWS Profile prompt_aws() { local aws_profile="${AWS_VAULT:-${AWSUME_PROFILE:-${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}}}" - if [[ "$aws_profile" != (default|) ]]; then + if [[ ! -z "$aws_profile" ]]; then _p9k_prompt_segment "$0" red white 'AWS_ICON' 0 '' "${aws_profile//\%/%%}" fi }