diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2016-02-05 18:34:34 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2016-02-05 18:34:34 +0300 |
commit | 65e9438210143496dde2972e3d967e1c7a949efb (patch) | |
tree | b96754fecae241470a3e5f654ba2db0eb93f36ba /powerlevel9k.zsh-theme | |
parent | 472fb6f674d315f372bc3480b2f1aba8d772a680 (diff) | |
parent | 45184839f36431c4b6c8bcc42f06cbb4a1ed3204 (diff) |
Merge pull request #203 from dritter/beanstalk
Reworked the AWS-Beanstalk segment
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 6f34b94c..f8e75b33 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -289,6 +289,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() { |