From a801ad1610fd49285ef8218b984cf60e1cbb96c3 Mon Sep 17 00:00:00 2001 From: leyla Date: Tue, 28 Jan 2020 16:48:49 +0900 Subject: [PATCH] fix Condition --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 93795c6..dc2aebf 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -512,7 +512,7 @@ function __bobthefish_prompt_aws_account_id -S -d 'Display AWS AccountId' function get-account-auto -S --on-variable AWS_ACCESS_KEY_ID set -x AWS_ACCOUNT_ID (aws sts get-caller-identity --output text --query "Account") end - [ "$theme_display_aws_account_id" = 'yes' -a -n "$AWS_ACCOUNT_ID" ]; or return + [ "$theme_display_aws_account_id" = 'no' -o -n "$AWS_ACCOUNT_ID" ]; or return __bobthefish_start_segment $color_aws_id echo -ns $AWS_ACCOUNT_ID ' ' end