diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-11-10 18:33:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-10 18:33:13 +0300 |
commit | 87acc51acab3ed4fd33cda2386abed6f98c80720 (patch) | |
tree | c75dc192c54cf2954debe9cdf4db45030bbf1b09 | |
parent | 948e7f5bff288dd0b91b1d37d13b2e9bb1592f00 (diff) | |
parent | 82bc300c625831ac7fc0e6067e1ea460e8fd0e59 (diff) |
Merge pull request #667 from akranga/master
Add support for both AWS_PROFILE and AWS_DEFAULT_PROFILE
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
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' |