From 82bc300c625831ac7fc0e6067e1ea460e8fd0e59 Mon Sep 17 00:00:00 2001 From: Antons Kranga Date: Tue, 7 Nov 2017 11:30:23 +0200 Subject: [PATCH] Add support for both AWS_PROFILE and AWS_DEFAULT_PROFILE --- powerlevel9k.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index f33d5a9a..73178865 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -287,7 +287,7 @@ prompt_anaconda() { # AWS Profile prompt_aws() { - local aws_profile="$AWS_DEFAULT_PROFILE" + local aws_profile="${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}" if [[ -n "$aws_profile" ]]; then "$1_prompt_segment" "$0" "$2" red white "$aws_profile" 'AWS_ICON'