Adding command prompt for AWS Elastic Beanstalk environment name.
This commit is contained in:
parent
472fb6f674
commit
af119c9406
2 changed files with 11 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue