summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2016-02-05 21:57:56 +0300
committerBen Hilburn <bhilburn@gmail.com>2016-02-05 21:57:56 +0300
commit4897c795faf557c16d0d337f5e493ba1e4071aa0 (patch)
tree90724e791c345c5ab34bfe5f3435c3702505d95b /powerlevel9k.zsh-theme
parentdfd7ae1f1d32fbb00d573b8e094a9547b5fb9894 (diff)
parentd5ac1735daac1d3b9d6b4d965f744e03f248b0d8 (diff)
Merge branch 'master' into next
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme9
1 files changed, 9 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 904d3d39..f48f97b2 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -302,6 +302,15 @@ prompt_aws() {
fi
}
+# Current Elastic Beanstalk environment
+prompt_aws_eb_env() {
+ local eb_env=$(grep environment .elasticbeanstalk/config.yml 2> /dev/null | awk '{print $2}')
+
+ if [[ -n "$eb_env" ]]; then
+ "$1_prompt_segment" "$0" "$2" black green "$eb_env" 'AWS_EB_ICON'
+ fi
+}
+
# Segment to indicate background jobs with an icon.
set_default POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE true
prompt_background_jobs() {