From 24b2f5da808311cc02676d9674c9a040d945478d Mon Sep 17 00:00:00 2001 From: vjeantet Date: Tue, 28 Feb 2023 18:18:14 +0100 Subject: [PATCH] AWS module try to use AWS_VAULT when AWS_PROFILE is not set --- segment-aws.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/segment-aws.go b/segment-aws.go index 6955f456..a7c90322 100644 --- a/segment-aws.go +++ b/segment-aws.go @@ -10,7 +10,10 @@ func segmentAWS(p *powerline) []pwl.Segment { profile := os.Getenv("AWS_PROFILE") region := os.Getenv("AWS_DEFAULT_REGION") if profile == "" { - return []pwl.Segment{} + profile = os.Getenv("AWS_VAULT") + if profile == "" { + return []pwl.Segment{} + } } var r string if region != "" {