zsh: add widget definitions

This commit is contained in:
2023-07-12 05:54:29 -04:00
parent 77ace654cb
commit 40f7d45fe1

View File

@@ -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