common icon indicating copy to clipboard operation
common copied to clipboard

aws plugin support?

Open jwalsh2me opened this issue 5 years ago • 2 comments

Any interest in adding in the aws plugin support on the prompt?

jwalsh2me avatar Jul 08 '20 13:07 jwalsh2me

Hey, which aws plugin?

jackharrisonsherlock avatar Aug 11 '20 21:08 jackharrisonsherlock

@jackharrisonsherlock The Oh My ZSH AWS plugin for profiles: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/aws

I just added this:

# Right Prompt
 RPROMPT='aws:$(common_aws_prompt) $(common_git_status)'
common_aws_prompt() {
    # local message ""
    echo -n "$AWS_PROFILE"
}
Screen Shot 2020-08-12 at 8 51 55 AM

I did not play with it long enough to make the aws: hide if there is no $AWS_PROFILE.

For those of us switching between several AWS profiles in the CLI, this is really handy to know which profile is selected and where your command will run.

Let me know your thoughts, can make a PR if interested.

John

jwalsh2me avatar Aug 12 '20 13:08 jwalsh2me