From 40f7d45fe13b2e7608c778a3c149783e9c0827f6 Mon Sep 17 00:00:00 2001 From: Kitty Cat Date: Wed, 12 Jul 2023 05:54:29 -0400 Subject: [PATCH] zsh: add widget definitions --- zsh/zshrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index 8a95e57..7282e71 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -88,7 +88,9 @@ function context-color() { # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh -POWERLEVEL9K_CONTEXT_DEFAULT_BACKGROUND=$(context-color) -POWERLEVEL9K_CONTEXT_REMOTE_BACKGROUND=$(context-color) -POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND=15 -POWERLEVEL9K_CONTEXT_REMOTE_FOREGROUND=15 +typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs direnv asdf virtualenv anaconda pyenv goenv nodenv nvm nodeenv rbenv rvm fvm luaenv jenv plenv perlbrew phpenv scalaenv haskell_stack kubecontext terraform aws aws_eb_env azure gcloud google_app_cred toolbox newline context prompt_char) +typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time background_jobs ranger nnn lf xplr vim_shell midnight_commander nix_shell chezmoi_shell todo timewarrior taskwarrior time newline load ram swap battery) +typeset -g POWERLEVEL9K_CONTEXT_DEFAULT_BACKGROUND=$(context-color) +typeset -g POWERLEVEL9K_CONTEXT_REMOTE_BACKGROUND=$(context-color) +typeset -g POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND=15 +typeset -g POWERLEVEL9K_CONTEXT_REMOTE_FOREGROUND=15