fcbdc330ff50617c8b84d39ce069cc75df41108f
- Author
- Carlo Sala <carlosalag@protonmail.com>
- Committer
- Carlo Sala <carlosalag@protonmail.com>
- Date
Message
fix(aws): restore accidentally deleted variable
Closes #11589
Diff
1diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh
2index 0242be97e13b69090e1d0799c5d5237b7d6a2e86..a379eaa18517dee05cbcffa22da90a36a88ee860 100644
3--- a/plugins/aws/aws.plugin.zsh
4+++ b/plugins/aws/aws.plugin.zsh
5@@ -197,6 +197,7 @@ compctl -K _aws_profiles asp acp aws_change_access_key
6 # AWS prompt
7 function aws_prompt_info() {
8 local _aws_to_show
9+ local region="${AWS_REGION:-${AWS_DEFAULT_REGION:-$AWS_PROFILE_REGION}}"
10 if [[ -n $AWS_PROFILE ]];then
11 _aws_to_show+="${ZSH_THEME_AWS_PROFILE_PREFIX:=<aws:}${AWS_PROFILE}${ZSH_THEME_AWS_PROFILE_SUFFIX:=>}"
12 fi
13@@ -211,7 +212,6 @@ if [[ "$SHOW_AWS_PROMPT" != false && "$RPROMPT" != *'$(aws_prompt_info)'* ]]; th
14 RPROMPT='$(aws_prompt_info)'"$RPROMPT"
15 fi
16
17-
18 # Load awscli completions
19
20 # AWS CLI v2 comes with its own autocompletion. Check if that is there, otherwise fall back