aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-08-02 00:19:16 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-08-02 00:19:16 +0300
commit99f631abb8ee5fdeb4a27a3ccfa794922266d409 (patch)
treefc0f74764190438c33bf6fbd28cababe7a49d592
parentb6a365dd401882f86e50eb4536acfe43c3496bcf (diff)
add rbenv to lean and classic configs (disabled until #146 is resolved)
-rw-r--r--config/p10k-classic.zsh9
-rw-r--r--config/p10k-lean.zsh9
2 files changed, 18 insertions, 0 deletions
diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh
index baa380df..444c967d 100644
--- a/config/p10k-classic.zsh
+++ b/config/p10k-classic.zsh
@@ -55,6 +55,7 @@ fi
nodeenv # node.js environment (https://github.com/ekalinin/nodeenv)
# node_version # node.js version
# go_version # golang version
+ # rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
kubecontext # current kubernetes context (https://kubernetes.io/)
context # user@host
nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
@@ -497,6 +498,14 @@ fi
# Custom icon.
# typeset -g POWERLEVEL9K_GO_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
+ #############[ rbenv: ruby version from rbenv (https://github.com/rbenv/rbenv) ]##############
+ # Rbenv color.
+ typeset -g POWERLEVEL9K_RBENV_FOREGROUND=168
+ # Don't show ruby version if it's the same as global: $(rbenv version-name) == $(rbenv global).
+ typeset -g POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false
+ # Custom icon.
+ # typeset -g POWERLEVEL9K_RBENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
+
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
# different contexts.
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index e4451fc0..5a94b43f 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -57,6 +57,7 @@ fi
nodeenv # node.js environment (https://github.com/ekalinin/nodeenv)
# node_version # node.js version
# go_version # golang version
+ # rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
kubecontext # current kubernetes context (https://kubernetes.io/)
context # user@host
nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
@@ -482,6 +483,14 @@ fi
# Custom icon.
# typeset -g POWERLEVEL9K_GO_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
+ #############[ rbenv: ruby version from rbenv (https://github.com/rbenv/rbenv) ]##############
+ # Rbenv color.
+ typeset -g POWERLEVEL9K_RBENV_FOREGROUND=168
+ # Don't show ruby version if it's the same as global: $(rbenv version-name) == $(rbenv global).
+ typeset -g POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false
+ # Custom icon.
+ # typeset -g POWERLEVEL9K_RBENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
+
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
# different contexts.