From 20a17daf159131b0354fcbfa94cd90772c8d37d0 Mon Sep 17 00:00:00 2001 From: romkatv Date: Thu, 2 Jan 2020 17:43:45 +0100 Subject: add luaenv prompt segment; see #342 --- config/p10k-classic.zsh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'config/p10k-classic.zsh') diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index 1004bd2a..3d69ec0f 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -62,6 +62,7 @@ rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv) 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) 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) @@ -720,6 +721,17 @@ # Custom icon. # typeset -g POWERLEVEL9K_FVM_VISUAL_IDENTIFIER_EXPANSION='⭐' + ##########[ luaenv: lua version from luaenv (https://github.com/cehoffman/luaenv) ]########### + # Lua color. + typeset -g POWERLEVEL9K_LUAENV_FOREGROUND=32 + # Hide lua version if it doesn't come from one of these sources. + typeset -g POWERLEVEL9K_LUAENV_SOURCES=(shell local global) + # If set to false, hide lua version if it's the same as global: + # $(luaenv version-name) == $(luaenv global). + typeset -g POWERLEVEL9K_LUAENV_PROMPT_ALWAYS_SHOW=false + # Custom icon. + # typeset -g POWERLEVEL9K_LUAENV_VISUAL_IDENTIFIER_EXPANSION='⭐' + ################[ terraform: terraform workspace (https://www.terraform.io) ]################# # Terraform color. typeset -g POWERLEVEL9K_TERRAFORM_FOREGROUND=38 -- cgit v1.2.3