From 6e600de6f9d0f78b2f058053bfbdb69d02c07f5f Mon Sep 17 00:00:00 2001 From: Eugene Brodsky Date: Wed, 15 Oct 2014 15:05:25 -0400 Subject: [PATCH] added AWS profile display to agnoster theme --- themes/agnoster.zsh-theme | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index 2b33c48b..6372c514 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -166,6 +166,15 @@ prompt_status() { [[ -n "$symbols" ]] && prompt_segment black default "$symbols" } +#AWS Profile +prompt_aws() { + local aws_profile=$AWS_DEFAULT_PROFILE + if [[ -n $aws_profile ]]; + then + prompt_segment red white "AWS: $aws_profile" + fi +} + ## Main prompt build_prompt() { RETVAL=$? @@ -175,6 +184,7 @@ build_prompt() { prompt_dir prompt_git prompt_hg + prompt_aws prompt_end }