aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme8
1 files changed, 8 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 6f34b94c..6ac25d77 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -289,6 +289,14 @@ prompt_aws() {
fi
}
+# Current Elastic Beanstalk environment
+prompt_aws_eb_env() {
+ if [ -e .elasticbeanstalk/config.yml ]; then
+ local eb_env=$(cat .elasticbeanstalk/config.yml | grep environment 2> /dev/null | awk '{print $2}')
+ "$1_prompt_segment" "$0" black green "$(print_icon 'AWS_EB_ICON') $eb_env"
+ fi
+}
+
# Segment to indicate background jobs with an icon.
set_default POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE true
prompt_background_jobs() {