diff options
author | elProxy <pierre.rossi@gmail.com> | 2021-08-19 10:27:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-19 10:27:05 +0300 |
commit | 277ff8b414a595902981b95199d0ffbc4498f808 (patch) | |
tree | 53c4af0a3ec042ac409434ee403e0d2669c35d62 | |
parent | ec44300155e99268cb2b23deb7e789d0bb4b1723 (diff) |
Add support for AWS_REGION with fallback to AWS_DEFAULT_REGION (#1544)
See https://fossies.org/linux/aws-cli/CHANGELOG.rst#section-133
-rw-r--r-- | internal/p10k.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 80b5d5b1..f4c032d7 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -1168,8 +1168,8 @@ prompt_aws() { fi done - if [[ -n $AWS_DEFAULT_REGION ]]; then - typeset -g P9K_AWS_REGION=$AWS_DEFAULT_REGION + if [[ -n ${AWS_REGION:-AWS_DEFAULT_REGION} ]]; then + typeset -g P9K_AWS_REGION=${AWS_REGION:-AWS_DEFAULT_REGION} else local cfg=${AWS_CONFIG_FILE:-~/.aws/config} if ! _p9k_cache_stat_get $0 $cfg; then |