mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 00:10:08 +00:00
add P9K_AWS_PROFILE and P9K_AWS_REGION and use it in default configs
This commit is contained in:
@@ -1268,12 +1268,6 @@
|
||||
# Tip: Remove the next line to always show aws.
|
||||
typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|terraform|pulumi|terragrunt'
|
||||
|
||||
# Include AWS region in prompt. (default: false)
|
||||
# typeset -g POWERLEVEL9K_AWS_SHOW_REGION=false
|
||||
|
||||
# Shorten AWS region. (default: true)
|
||||
# typeset -g POWERLEVEL9K_AWS_SHOW_REGION_SHORT=true
|
||||
|
||||
# POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element
|
||||
# in each pair defines a pattern against which the current AWS profile gets matched.
|
||||
# More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)
|
||||
@@ -1304,6 +1298,12 @@
|
||||
typeset -g POWERLEVEL9K_AWS_DEFAULT_FOREGROUND=208
|
||||
# typeset -g POWERLEVEL9K_AWS_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
|
||||
# AWS segment format. The following parameters are available within the expansion.
|
||||
#
|
||||
# - P9K_AWS_PROFILE The name of the current AWS profile.
|
||||
# - P9K_AWS_REGION The region associated with the current AWS profile.
|
||||
typeset -g POWERLEVEL9K_AWS_CONTENT_EXPANSION='${P9K_AWS_PROFILE//\%/%%}${P9K_AWS_REGION:+ ${P9K_AWS_REGION//\%/%%}}'
|
||||
|
||||
#[ aws_eb_env: aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/) ]#
|
||||
# AWS Elastic Beanstalk environment color.
|
||||
typeset -g POWERLEVEL9K_AWS_EB_ENV_FOREGROUND=70
|
||||
|
||||
Reference in New Issue
Block a user