common
common copied to clipboard
aws plugin support?
Any interest in adding in the aws plugin support on the prompt?
Hey, which aws plugin?
@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"
}
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