diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-05-28 15:53:50 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-05-28 15:55:27 +0300 |
commit | c7ad00b5a5ec92c9b6edf8051502f42659f820b5 (patch) | |
tree | 2a6528a6e17e70dc4850ee35a1d0bad8892a6238 /config/p10k-classic.zsh | |
parent | 10918387b3b82f912938aff4e0bfcc923e52cc75 (diff) |
add P9K_AWS_PROFILE and P9K_AWS_REGION and use it in default configs
Diffstat (limited to 'config/p10k-classic.zsh')
-rw-r--r-- | config/p10k-classic.zsh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index 20d1e5b6..a3013932 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -1291,12 +1291,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) @@ -1327,6 +1321,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 |