warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.47k stars 376 forks source link

Add current aws-cli profile to warp prompt #4461

Open Jared0430 opened 8 months ago

Jared0430 commented 8 months ago

Discord username (optional)

No response

Describe the solution you'd like?

We currently have a kube-context chip in the warp prompt that appears when typing a kubectl command, I'd love to see the same thing for aws-cli as I switch between several throughout the day, it can get confusing to track which one I'm using.

Is your feature request related to a problem? Please describe.

No response

Additional context

No response

How important is this feature to you?

3

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

dannyneira commented 8 months ago

Thanks for this feature request @Jared0430! As a potential stopgap, we support shell prompts like starship.rs which has aws module. https://docs.warp.dev/appearance/prompt

To anyone else interested in this feature, please add a 👍 to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified.

Jared0430 commented 8 months ago

Thanks for the stopgap suggestions @dannyneira. I have something similar set up with powerlevel10k already however it doesn't seem to work correctly. If I put it in lprompt it doesn't seem to come up in warp as I type, and currently rprompt isn't supported #4001

IgorEulalio commented 3 months ago

As I type anything that starts with AWS powerlevel10k display region and profile in the right, same applies for gcloud and kubectl CLI.

All of them work in terminals like iTerm but only kubectl one works in Warp, and also not 100%:

image image image