64 lines
3.2 KiB
Bash
64 lines
3.2 KiB
Bash
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
|
# Initialization code that may require console input (password prompts, [y/n]
|
|
# confirmations, etc.) must go above this block; everything else may go below.
|
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
fi
|
|
|
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs nvm kubecontext)
|
|
|
|
POWERLEVEL9K_DISABLE_RPROMPT=true
|
|
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
|
|
POWERLEVEL9K_LEFT_SEGMENT_END_SEPARATOR=
|
|
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
|
|
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=
|
|
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%F{%(?.green.red)}➜%f '
|
|
|
|
POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR=
|
|
POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR=' '
|
|
POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS=
|
|
|
|
POWERLEVEL9K_DIR_SHOW_WRITABLE=true
|
|
typeset POWERLEVEL9K_DIR_{ETC,HOME,HOME_SUBFOLDER,DEFAULT,NOT_WRITABLE}_BACKGROUND=none
|
|
typeset POWERLEVEL9K_DIR_{HOME,HOME_SUBFOLDER,ETC,DEFAULT}_FOREGROUND=cyan
|
|
typeset POWERLEVEL9K_{ETC,FOLDER,HOME,HOME_SUB}_ICON=
|
|
POWERLEVEL9K_DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_COLOR=red
|
|
POWERLEVEL9K_LOCK_ICON=$'\uE0A2'
|
|
|
|
POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS=1e9
|
|
typeset POWERLEVEL9K_VCS_{CLEAN,UNTRACKED,MODIFIED,LOADING}_BACKGROUND=none
|
|
typeset POWERLEVEL9K_VCS_{CLEAN,UNTRACKED,MODIFIED,LOADING}_FOREGROUND=magenta
|
|
typeset POWERLEVEL9K_VCS_{CLEAN,UNTRACKED,MODIFIED,LOADING}_{STAGED,UNSTAGED,UNTRACKED,INCOMING_CHANGES,OUTGOING_CHANGES,STASH,ACTION}FORMAT_FOREGROUND=red
|
|
typeset POWERLEVEL9K_VCS_{GIT,GIT_GITHUB,GIT_BITBUCKET,GIT_GITLAB}_ICON=
|
|
POWERLEVEL9K_VCS_BRANCH_ICON='%fon %F{magenta}\uE0A0 '
|
|
POWERLEVEL9K_VCS_UNTRACKED_ICON=$'%{\b?%}'
|
|
POWERLEVEL9K_VCS_UNSTAGED_ICON=$'%{\b!%}'
|
|
POWERLEVEL9K_VCS_STAGED_ICON=$'%{\b+%}'
|
|
|
|
POWERLEVEL9K_NVM_BACKGROUND=none
|
|
POWERLEVEL9K_NVM_FOREGROUND=green
|
|
POWERLEVEL9K_NODE_ICON='%fvia %F{green}⬢'
|
|
|
|
POWERLEVEL9K_KUBECONTEXT_BACKGROUND=none
|
|
POWERLEVEL9K_KUBECONTEXT_FOREGROUND=cyan
|
|
POWERLEVEL9K_KUBERNETES_ICON='%fat %F{cyan}☸️ '
|
|
POWERLEVEL9K_KUBECONTEXT_SHOW_DEFAULT_NAMESPACE=false
|
|
|
|
# Instant prompt mode.
|
|
#
|
|
# - off: Disable instant prompt. Choose this if you've tried instant prompt and found
|
|
# it incompatible with your zsh configuration files.
|
|
# - quiet: Enable instant prompt and don't print warnings when detecting console output
|
|
# during zsh initialization. Choose this if you've read and understood
|
|
# https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt.
|
|
# - verbose: Enable instant prompt and print a warning when detecting console output during
|
|
# zsh initialization. Choose this if you've never tried instant prompt, haven't
|
|
# seen the warning, or if you are unsure what this all means.
|
|
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
|
|
|
|
# Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.
|
|
# For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload
|
|
# can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you
|
|
# really need it.
|
|
typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true
|