From 94de8519b4879c6a1f62ce9e8155809e4641a471 Mon Sep 17 00:00:00 2001 From: romkatv Date: Wed, 16 Oct 2019 16:19:41 +0200 Subject: [PATCH] cleanup --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 5e80311a..7849187e 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 [[ ! -z "$aws_profile" ]]; then + if [[ -n "$aws_profile" ]]; then _p9k_prompt_segment "$0" red white 'AWS_ICON' 0 '' "${aws_profile//\%/%%}" fi }