mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 19:49:25 +00:00
[aws] Fix switch_aws_profile when dealing with AWS_DEFAULT_REGION
This commit is contained in:
@ -13,7 +13,7 @@ typeset -gA aws_info
|
||||
|
||||
|
||||
if (( ${+AWS_PROFILE} )); then
|
||||
if (( ${+AWS_DEFAULT_REGION+1} )) && [[ ${_aws_region} = "true" ]]; then
|
||||
if (( ${+AWS_DEFAULT_REGION} )) && [[ ${_aws_region} = "true" ]]; then
|
||||
AWS_REGION=$(cut -d "-" -f 1 <<<$AWS_DEFAULT_REGION | cut -b 1)$(cut -d "-" -f 2 <<<$AWS_DEFAULT_REGION | cut -b 1)$(cut -d "-" -f 3 <<<$AWS_DEFAULT_REGION | cut -b 1)
|
||||
AWS_REGION_PROMPT=" $AWS_REGION"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user