mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-28 14:40:06 +00:00
Merge branch 'terraform-show-default' of https://github.com/ancarpan/powerlevel10k into ancarpan-terraform-show-default
This commit is contained in:
commit
06ed564092
5 changed files with 11 additions and 1 deletions
|
@ -1153,6 +1153,8 @@
|
||||||
'*' DEFAULT)
|
'*' DEFAULT)
|
||||||
typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_FOREGROUND=38
|
typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_FOREGROUND=38
|
||||||
# typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
# Show terraform workspace even if it's default
|
||||||
|
typeset -g POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT_WS=false
|
||||||
|
|
||||||
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
||||||
# Show kubecontext only when the the command you are typing invokes one of these tools.
|
# Show kubecontext only when the the command you are typing invokes one of these tools.
|
||||||
|
|
|
@ -1217,6 +1217,8 @@
|
||||||
'*' DEFAULT)
|
'*' DEFAULT)
|
||||||
typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_FOREGROUND=4
|
typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_FOREGROUND=4
|
||||||
# typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
# Show terraform workspace even if it's default
|
||||||
|
typeset -g POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT_WS=false
|
||||||
|
|
||||||
#[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]#
|
#[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]#
|
||||||
# Show aws only when the the command you are typing invokes one of these tools.
|
# Show aws only when the the command you are typing invokes one of these tools.
|
||||||
|
|
|
@ -1217,6 +1217,8 @@
|
||||||
'*' DEFAULT)
|
'*' DEFAULT)
|
||||||
typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_FOREGROUND=38
|
typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_FOREGROUND=38
|
||||||
# typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
# Show terraform workspace even if it's default
|
||||||
|
typeset -g POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT_WS=false
|
||||||
|
|
||||||
#[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]#
|
#[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]#
|
||||||
# Show aws only when the the command you are typing invokes one of these tools.
|
# Show aws only when the the command you are typing invokes one of these tools.
|
||||||
|
|
|
@ -1216,6 +1216,8 @@
|
||||||
typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_FOREGROUND=4
|
typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_FOREGROUND=4
|
||||||
typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_BACKGROUND=0
|
typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_BACKGROUND=0
|
||||||
# typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
# Show terraform workspace even if it's default
|
||||||
|
typeset -g POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT_WS=false
|
||||||
|
|
||||||
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
||||||
# Show kubecontext only when the the command you are typing invokes one of these tools.
|
# Show kubecontext only when the the command you are typing invokes one of these tools.
|
||||||
|
|
|
@ -4666,7 +4666,8 @@ function prompt_terraform() {
|
||||||
if [[ -z $TF_WORKSPACE ]]; then
|
if [[ -z $TF_WORKSPACE ]]; then
|
||||||
_p9k_read_word ${${TF_DATA_DIR:-.terraform}:A}/environment && ws=$_p9k__ret
|
_p9k_read_word ${${TF_DATA_DIR:-.terraform}:A}/environment && ws=$_p9k__ret
|
||||||
fi
|
fi
|
||||||
[[ $ws == (|default) ]] && return
|
[[ $ws == '' ]] && return
|
||||||
|
[[ ($ws == 'default') && ( ! ${_POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT_WS} ) ]] && return
|
||||||
local pat class
|
local pat class
|
||||||
for pat class in "${_POWERLEVEL9K_TERRAFORM_CLASSES[@]}"; do
|
for pat class in "${_POWERLEVEL9K_TERRAFORM_CLASSES[@]}"; do
|
||||||
if [[ $ws == ${~pat} ]]; then
|
if [[ $ws == ${~pat} ]]; then
|
||||||
|
@ -7114,6 +7115,7 @@ _p9k_init_params() {
|
||||||
_p9k_declare -a POWERLEVEL9K_KUBECONTEXT_CLASSES --
|
_p9k_declare -a POWERLEVEL9K_KUBECONTEXT_CLASSES --
|
||||||
_p9k_declare -a POWERLEVEL9K_AWS_CLASSES --
|
_p9k_declare -a POWERLEVEL9K_AWS_CLASSES --
|
||||||
_p9k_declare -a POWERLEVEL9K_TERRAFORM_CLASSES --
|
_p9k_declare -a POWERLEVEL9K_TERRAFORM_CLASSES --
|
||||||
|
_p9k_declare -b POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT_WS 0
|
||||||
_p9k_declare -a POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES -- 'service_account:*' SERVICE_ACCOUNT
|
_p9k_declare -a POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES -- 'service_account:*' SERVICE_ACCOUNT
|
||||||
# Specifies the format of java version.
|
# Specifies the format of java version.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue