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
This commit is contained in:
Filipe 2024-10-04 20:24:49 +13:00 committed by GitHub
parent c64a133616
commit 0996a94118
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1179,7 +1179,7 @@ function _p9k_parse_aws_config() {
################################################################ ################################################################
# AWS Profile # AWS Profile
prompt_aws() { 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 local pat class state
for pat class in "${_POWERLEVEL9K_AWS_CLASSES[@]}"; do for pat class in "${_POWERLEVEL9K_AWS_CLASSES[@]}"; do
if [[ $P9K_AWS_PROFILE == ${~pat} ]]; then if [[ $P9K_AWS_PROFILE == ${~pat} ]]; then