From 3e2053a9341fe4cf5ab69909d3f39d53b1dfe772 Mon Sep 17 00:00:00 2001 From: "Seyed Sajjad (Sina) Tak Tehrani" Date: Mon, 6 Jan 2025 12:24:25 +0100 Subject: [PATCH] fix(prompt): add support for AWS_SSO_PROFILE in AWS segment initialization (#2813) - Updated `_p9k_prompt_aws_init` to include `AWS_SSO_PROFILE` in the condition for activating the AWS segment. - Ensures compatibility with AWS SSO profiles in addition to other AWS environment variables. --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 839aa1f0..cd8978f2 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -1206,7 +1206,7 @@ prompt_aws() { } _p9k_prompt_aws_init() { - typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='${AWS_VAULT:-${AWSUME_PROFILE:-${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}}}' + typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='${AWS_SSO_PROFILE:-${AWS_VAULT:-${AWSUME_PROFILE:-${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}}}}' } ################################################################