Skip to content

Commit

Permalink
Merge pull request #377 from vjeantet/main
Browse files Browse the repository at this point in the history
AWS module try to use AWS_VAULT when AWS_PROFILE is not set
  • Loading branch information
justjanne committed May 23, 2023
2 parents 68e67f9 24b2f5d commit 32b18e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion segment-aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down

0 comments on commit 32b18e5

Please sign in to comment.