From d8b847c67fe7952e15ba8946d49216783d4a96d0 Mon Sep 17 00:00:00 2001 From: romkatv Date: Thu, 2 Jan 2020 18:03:59 +0100 Subject: add jenv prompt segment; see #342 --- config/p10k-rainbow.zsh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'config/p10k-rainbow.zsh') diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh index ec7b0c76..d2558579 100644 --- a/config/p10k-rainbow.zsh +++ b/config/p10k-rainbow.zsh @@ -63,6 +63,7 @@ rvm # ruby version from rvm (https://rvm.io) fvm # flutter version management (https://github.com/leoafarias/fvm) luaenv # lua version from luaenv (https://github.com/cehoffman/luaenv) + jenv # java version from jenv (https://github.com/jenv/jenv) kubecontext # current kubernetes context (https://kubernetes.io/) terraform # terraform workspace (https://www.terraform.io) aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) @@ -753,6 +754,18 @@ # Custom icon. # typeset -g POWERLEVEL9K_LUAENV_VISUAL_IDENTIFIER_EXPANSION='⭐' + ###############[ jenv: java version from jenv (https://github.com/jenv/jenv) ]################ + # Java color. + # typeset -g POWERLEVEL9K_JENV_FOREGROUND=1 + # typeset -g POWERLEVEL9K_JENV_BACKGROUND=7 + # Hide java version if it doesn't come from one of these sources. + typeset -g POWERLEVEL9K_JENV_SOURCES=(shell local global) + # If set to false, hide java version if it's the same as global: + # $(jenv version-name) == $(jenv global). + typeset -g POWERLEVEL9K_JENV_PROMPT_ALWAYS_SHOW=false + # Custom icon. + # typeset -g POWERLEVEL9K_JENV_VISUAL_IDENTIFIER_EXPANSION='⭐' + ################[ terraform: terraform workspace (https://www.terraform.io) ]################# # Terraform color. # typeset -g POWERLEVEL9K_TERRAFORM_FOREGROUND=4 -- cgit v1.2.3