From 0996a9411824cbfe8fdd8cb17448c94ef891be34 Mon Sep 17 00:00:00 2001 From: Filipe Date: Fri, 4 Oct 2024 20:24:49 +1300 Subject: [PATCH] Support aws-sso-cli on AWS prompt element (#2769) Adds support for `aws-sso-cli` tool in AWS prompt element. https://github.com/synfinatic/aws-sso-cli Docs: https://synfinatic.github.io/aws-sso-cli/v1.17.0/commands/#managed-variables --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 65d67c13..0942c1c1 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -1179,7 +1179,7 @@ function _p9k_parse_aws_config() { ################################################################ # AWS Profile prompt_aws() { - typeset -g P9K_AWS_PROFILE="${AWS_VAULT:-${AWSUME_PROFILE:-${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}}}" + typeset -g P9K_AWS_PROFILE="${AWS_SSO_PROFILE:-${AWS_VAULT:-${AWSUME_PROFILE:-${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}}}}" local pat class state for pat class in "${_POWERLEVEL9K_AWS_CLASSES[@]}"; do if [[ $P9K_AWS_PROFILE == ${~pat} ]]; then