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 }