1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-11 00:00:06 +00:00

Merge pull request #667 from akranga/master

Add support for both AWS_PROFILE and AWS_DEFAULT_PROFILE
This commit is contained in:
Ben Hilburn 2017-11-10 10:33:13 -05:00 committed by GitHub
commit 87acc51aca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'