Skip to content

Commit 32b18e5

Browse files
authored
Merge pull request #377 from vjeantet/main
AWS module try to use AWS_VAULT when AWS_PROFILE is not set
2 parents 68e67f9 + 24b2f5d commit 32b18e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

segment-aws.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ func segmentAWS(p *powerline) []pwl.Segment {
1010
profile := os.Getenv("AWS_PROFILE")
1111
region := os.Getenv("AWS_DEFAULT_REGION")
1212
if profile == "" {
13-
return []pwl.Segment{}
13+
profile = os.Getenv("AWS_VAULT")
14+
if profile == "" {
15+
return []pwl.Segment{}
16+
}
1417
}
1518
var r string
1619
if region != "" {

0 commit comments

Comments
 (0)