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 | |
parent | 10918387b3b82f912938aff4e0bfcc923e52cc75 (diff) |
add P9K_AWS_PROFILE and P9K_AWS_REGION and use it in default configs
Diffstat (limited to 'config')
-rw-r--r-- | config/p10k-classic.zsh | 12 | ||||
-rw-r--r-- | config/p10k-lean-8colors.zsh | 12 | ||||
-rw-r--r-- | config/p10k-lean.zsh | 12 | ||||
-rw-r--r-- | config/p10k-rainbow.zsh | 12 |
4 files changed, 24 insertions, 24 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 diff --git a/config/p10k-lean-8colors.zsh b/config/p10k-lean-8colors.zsh index b2825b8d..57f1bd12 100644 --- a/config/p10k-lean-8colors.zsh +++ b/config/p10k-lean-8colors.zsh @@ -1272,12 +1272,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) @@ -1308,6 +1302,12 @@ typeset -g POWERLEVEL9K_AWS_DEFAULT_FOREGROUND=3 # 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=2 diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh index 30a3a274..f843f99a 100644 --- a/config/p10k-lean.zsh +++ b/config/p10k-lean.zsh @@ -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 diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh index 9411b090..722acbdd 100644 --- a/config/p10k-rainbow.zsh +++ b/config/p10k-rainbow.zsh @@ -1360,12 +1360,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) @@ -1397,6 +1391,12 @@ typeset -g POWERLEVEL9K_AWS_DEFAULT_BACKGROUND=1 # 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=2 |