Skip to content

Commit

Permalink
AWS module try to use AWS_VAULT when AWS_PROFILE is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeantet committed Feb 28, 2023
1 parent 80bafcf commit 24b2f5d
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 24b2f5d

Please sign in to comment.