-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create new segment for AWS profile prompt segment #299
base: master
Are you sure you want to change the base?
Conversation
Hey @fernandocarletti - nice work! I authored the AWS Vault segment, and have since thought about doing the AWS profile as well - but you've done the work for me! Cheers! However, I'm wondering whether we should merge the two together i.e. a generic "AWS segment" that activated on either the vanilla AWS CLI tools or the AWS vault tool. Somewhat prevents crazy config explosion and seems to make sense to keep all the same kinds of things nicely grouped together. Thoughts? |
Hey @darrenkidd! If I recall correctly, this was actually my initial approach to this, but I don't remember exactly why I moved away from it. But I agree with you, it makes more sense to have it in a single configuration. I can change the implementation and get your input once it is ready. Sounds good to you? |
Sounds great! IMO I think we should prioritise I also think we should move to From memory the AWS CLI also puts session expiry information into env vars too, so we should be able to leverage that now as well? Can rename |
@darrenkidd it is finally done! Can you take a look if it fits what you imagined? Best! |
4e58938
to
b69c8b9
Compare
Nice, @fernandocarletti. I've had a skim but need a bit more time to think and digest. I just want to double-check it handles both tools well with no surprises! |
Hi, any chances to get this into mainstream anytime soon? This is a small change while quite useful, would be great to get it merged :) |
This change adds the
$AWS_PROFILE
as a new segment in the prompt. I took the previous existing AWS Vault as base and reused the colors.