mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 04:10:07 +00:00
Add support for AWS_REGION with fallback to AWS_DEFAULT_REGION (#1544)
See https://fossies.org/linux/aws-cli/CHANGELOG.rst#section-133
This commit is contained in:
parent
ec44300155
commit
277ff8b414
1 changed files with 2 additions and 2 deletions
|
@ -1168,8 +1168,8 @@ prompt_aws() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -n $AWS_DEFAULT_REGION ]]; then
|
if [[ -n ${AWS_REGION:-AWS_DEFAULT_REGION} ]]; then
|
||||||
typeset -g P9K_AWS_REGION=$AWS_DEFAULT_REGION
|
typeset -g P9K_AWS_REGION=${AWS_REGION:-AWS_DEFAULT_REGION}
|
||||||
else
|
else
|
||||||
local cfg=${AWS_CONFIG_FILE:-~/.aws/config}
|
local cfg=${AWS_CONFIG_FILE:-~/.aws/config}
|
||||||
if ! _p9k_cache_stat_get $0 $cfg; then
|
if ! _p9k_cache_stat_get $0 $cfg; then
|
||||||
|
|
Loading…
Reference in a new issue