789 lines
34 KiB
Bash
789 lines
34 KiB
Bash
'builtin' 'local' '-a' 'p10k_config_opts'
|
||
[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases')
|
||
[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob')
|
||
[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
|
||
'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
|
||
|
||
() {
|
||
emulate -L zsh -o extended_glob
|
||
|
||
unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR'
|
||
|
||
[[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return
|
||
|
||
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
|
||
os_icon # os identifier
|
||
dir # current directory
|
||
vcs # git status
|
||
# prompt_char # prompt symbol
|
||
)
|
||
|
||
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
|
||
status # exit code of the last command
|
||
command_execution_time # duration of the last command
|
||
background_jobs # presence of background jobs
|
||
direnv # direnv status (https://direnv.net/)
|
||
asdf # asdf version manager (https://github.com/asdf-vm/asdf)
|
||
virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
|
||
anaconda # conda environment (https://conda.io/)
|
||
pyenv # python environment (https://github.com/pyenv/pyenv)
|
||
goenv # go environment (https://github.com/syndbg/goenv)
|
||
nodenv # node.js version from nodenv (https://github.com/nodenv/nodenv)
|
||
nvm # node.js version from nvm (https://github.com/nvm-sh/nvm)
|
||
nodeenv # node.js environment (https://github.com/ekalinin/nodeenv)
|
||
# node_version # node.js version
|
||
# go_version # go version (https://golang.org)
|
||
# rust_version # rustc version (https://www.rust-lang.org)
|
||
# dotnet_version # .NET version (https://dotnet.microsoft.com)
|
||
# php_version # php version (https://www.php.net/)
|
||
# laravel_version # laravel php framework version (https://laravel.com/)
|
||
# java_version # java version (https://www.java.com/)
|
||
# package # name@version from package.json (https://docs.npmjs.com/files/package.json)
|
||
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)
|
||
jenv # java version from jenv (https://github.com/jenv/jenv)
|
||
plenv # perl version from plenv (https://github.com/tokuhirom/plenv)
|
||
perlbrew # perl version from perlbrew (https://github.com/gugod/App-perlbrew)
|
||
phpenv # php version from phpenv (https://github.com/phpenv/phpenv)
|
||
scalaenv # scala version from scalaenv (https://github.com/scalaenv/scalaenv)
|
||
haskell_stack # haskell version from stack (https://haskellstack.org/)
|
||
kubecontext # current kubernetes context (https://kubernetes.io/)
|
||
terraform # terraform workspace (https://www.terraform.io)
|
||
# terraform_version # terraform version (https://www.terraform.io)
|
||
aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
|
||
aws_eb_env # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/)
|
||
azure # azure account name (https://docs.microsoft.com/en-us/cli/azure)
|
||
gcloud # google cloud cli account and project (https://cloud.google.com/)
|
||
google_app_cred # google application credentials (https://cloud.google.com/docs/authentication/production)
|
||
toolbox # toolbox name (https://github.com/containers/toolbox)
|
||
context # user@hostname
|
||
nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
|
||
ranger # ranger shell (https://github.com/ranger/ranger)
|
||
yazi # yazi shell (https://github.com/sxyazi/yazi)
|
||
nnn # nnn shell (https://github.com/jarun/nnn)
|
||
lf # lf shell (https://github.com/gokcehan/lf)
|
||
xplr # xplr shell (https://github.com/sayanarijit/xplr)
|
||
vim_shell # vim shell indicator (:sh)
|
||
midnight_commander # midnight commander shell (https://midnight-commander.org/)
|
||
nix_shell # nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html)
|
||
chezmoi_shell # chezmoi shell (https://www.chezmoi.io/)
|
||
vi_mode # vi mode (you don't need this if you've enabled prompt_char)
|
||
# vpn_ip # virtual private network indicator
|
||
# load # CPU load
|
||
# disk_usage # disk usage
|
||
# ram # free RAM
|
||
# swap # used swap
|
||
todo # todo items (https://github.com/todotxt/todo.txt-cli)
|
||
timewarrior # timewarrior tracking status (https://timewarrior.net/)
|
||
taskwarrior # taskwarrior task count (https://taskwarrior.org/)
|
||
per_directory_history # Oh My Zsh per-directory-history local/global indicator
|
||
# cpu_arch # CPU architecture
|
||
time # current time
|
||
# ip # ip address and bandwidth usage for a specified network interface
|
||
# public_ip # public IP address
|
||
# proxy # system-wide http/https/ftp proxy
|
||
# battery # internal battery
|
||
# wifi # wifi speed
|
||
# example # example user-defined segment (see prompt_example function below)
|
||
)
|
||
|
||
typeset -g POWERLEVEL9K_MODE=nerdfont-v3
|
||
typeset -g POWERLEVEL9K_ICON_PADDING=none
|
||
|
||
typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT=
|
||
|
||
typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
|
||
|
||
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%242F╭─'
|
||
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX='%242F├─'
|
||
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%242F╰─'
|
||
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX='%242F─╮'
|
||
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX='%242F─┤'
|
||
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX='%242F─╯'
|
||
|
||
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' '
|
||
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_BACKGROUND=
|
||
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND=
|
||
if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then
|
||
# The color of the filler. You'll probably want to match the color of POWERLEVEL9K_MULTILINE
|
||
# ornaments defined above.
|
||
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=242
|
||
# Start filler from the edge of the screen if there are no left segments on the first line.
|
||
typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}'
|
||
# End filler on the edge of the screen if there are no right segments on the first line.
|
||
typeset -g POWERLEVEL9K_EMPTY_LINE_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='%{%}'
|
||
fi
|
||
|
||
typeset -g POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR='\uE0B1'
|
||
typeset -g POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR='\uE0B3'
|
||
typeset -g POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='\uE0B0'
|
||
typeset -g POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='\uE0B2'
|
||
|
||
typeset -g POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0B0'
|
||
typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\uE0B2'
|
||
typeset -g POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=''
|
||
typeset -g POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL=''
|
||
typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
|
||
|
||
typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=232
|
||
typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=7
|
||
|
||
typeset -g POWERLEVEL9K_PROMPT_CHAR_BACKGROUND=
|
||
typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=76
|
||
typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=196
|
||
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯'
|
||
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮'
|
||
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='V'
|
||
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_CONTENT_EXPANSION='▶'
|
||
typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true
|
||
typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
|
||
typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=
|
||
typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_{LEFT,RIGHT}_WHITESPACE=
|
||
|
||
typeset -g POWERLEVEL9K_DIR_BACKGROUND=4
|
||
typeset -g POWERLEVEL9K_DIR_FOREGROUND=254
|
||
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
|
||
typeset -g POWERLEVEL9K_SHORTEN_DELIMITER=
|
||
typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=250
|
||
typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=255
|
||
typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true
|
||
local anchor_files=(
|
||
.bzr
|
||
.citc
|
||
.git
|
||
.hg
|
||
.node-version
|
||
.python-version
|
||
.go-version
|
||
.ruby-version
|
||
.lua-version
|
||
.java-version
|
||
.perl-version
|
||
.php-version
|
||
.tool-versions
|
||
.mise.toml
|
||
.shorten_folder_marker
|
||
.svn
|
||
.terraform
|
||
CVS
|
||
Cargo.toml
|
||
composer.json
|
||
go.mod
|
||
package.json
|
||
stack.yaml
|
||
)
|
||
typeset -g POWERLEVEL9K_SHORTEN_FOLDER_MARKER="(${(j:|:)anchor_files})"
|
||
typeset -g POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER=false
|
||
typeset -g POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
|
||
typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=80
|
||
typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS=40
|
||
typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT=50
|
||
typeset -g POWERLEVEL9K_DIR_HYPERLINK=false
|
||
|
||
typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=v3
|
||
|
||
|
||
|
||
|
||
typeset -g POWERLEVEL9K_VCS_CLEAN_BACKGROUND=2
|
||
typeset -g POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=3
|
||
typeset -g POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND=2
|
||
typeset -g POWERLEVEL9K_VCS_CONFLICTED_BACKGROUND=3
|
||
typeset -g POWERLEVEL9K_VCS_LOADING_BACKGROUND=8
|
||
|
||
typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='\uF126 '
|
||
|
||
typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON='?'
|
||
|
||
function my_git_formatter() {
|
||
emulate -L zsh
|
||
|
||
if [[ -n $P9K_CONTENT ]]; then
|
||
# If P9K_CONTENT is not empty, use it. It's either "loading" or from vcs_info (not from
|
||
# gitstatus plugin). VCS_STATUS_* parameters are not available in this case.
|
||
typeset -g my_git_format=$P9K_CONTENT
|
||
return
|
||
fi
|
||
|
||
# Styling for different parts of Git status.
|
||
local meta='%7F' # white foreground
|
||
local clean='%0F' # black foreground
|
||
local modified='%0F' # black foreground
|
||
local untracked='%0F' # black foreground
|
||
local conflicted='%1F' # red foreground
|
||
|
||
local res
|
||
|
||
if [[ -n $VCS_STATUS_LOCAL_BRANCH ]]; then
|
||
local branch=${(V)VCS_STATUS_LOCAL_BRANCH}
|
||
# If local branch name is at most 32 characters long, show it in full.
|
||
# Otherwise show the first 12 … the last 12.
|
||
# Tip: To always show local branch name in full without truncation, delete the next line.
|
||
(( $#branch > 32 )) && branch[13,-13]="…" # <-- this line
|
||
res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}${branch//\%/%%}"
|
||
fi
|
||
|
||
if [[ -n $VCS_STATUS_TAG
|
||
# Show tag only if not on a branch.
|
||
# Tip: To always show tag, delete the next line.
|
||
&& -z $VCS_STATUS_LOCAL_BRANCH # <-- this line
|
||
]]; then
|
||
local tag=${(V)VCS_STATUS_TAG}
|
||
# If tag name is at most 32 characters long, show it in full.
|
||
# Otherwise show the first 12 … the last 12.
|
||
# Tip: To always show tag name in full without truncation, delete the next line.
|
||
(( $#tag > 32 )) && tag[13,-13]="…" # <-- this line
|
||
res+="${meta}#${clean}${tag//\%/%%}"
|
||
fi
|
||
|
||
# Display the current Git commit if there is no branch and no tag.
|
||
# Tip: To always display the current Git commit, delete the next line.
|
||
[[ -z $VCS_STATUS_LOCAL_BRANCH && -z $VCS_STATUS_TAG ]] && # <-- this line
|
||
res+="${meta}@${clean}${VCS_STATUS_COMMIT[1,8]}"
|
||
|
||
# Show tracking branch name if it differs from local branch.
|
||
if [[ -n ${VCS_STATUS_REMOTE_BRANCH:#$VCS_STATUS_LOCAL_BRANCH} ]]; then
|
||
res+="${meta}:${clean}${(V)VCS_STATUS_REMOTE_BRANCH//\%/%%}"
|
||
fi
|
||
|
||
# Display "wip" if the latest commit's summary contains "wip" or "WIP".
|
||
if [[ $VCS_STATUS_COMMIT_SUMMARY == (|*[^[:alnum:]])(wip|WIP)(|[^[:alnum:]]*) ]]; then
|
||
res+=" ${modified}wip"
|
||
fi
|
||
|
||
if (( VCS_STATUS_COMMITS_AHEAD || VCS_STATUS_COMMITS_BEHIND )); then
|
||
# ⇣42 if behind the remote.
|
||
(( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}⇣${VCS_STATUS_COMMITS_BEHIND}"
|
||
# ⇡42 if ahead of the remote; no leading space if also behind the remote: ⇣42⇡42.
|
||
(( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" "
|
||
(( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}⇡${VCS_STATUS_COMMITS_AHEAD}"
|
||
elif [[ -n $VCS_STATUS_REMOTE_BRANCH ]]; then
|
||
# Tip: Uncomment the next line to display '=' if up to date with the remote.
|
||
# res+=" ${clean}="
|
||
fi
|
||
|
||
# ⇠42 if behind the push remote.
|
||
(( VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" ${clean}⇠${VCS_STATUS_PUSH_COMMITS_BEHIND}"
|
||
(( VCS_STATUS_PUSH_COMMITS_AHEAD && !VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" "
|
||
# ⇢42 if ahead of the push remote; no leading space if also behind: ⇠42⇢42.
|
||
(( VCS_STATUS_PUSH_COMMITS_AHEAD )) && res+="${clean}⇢${VCS_STATUS_PUSH_COMMITS_AHEAD}"
|
||
# *42 if have stashes.
|
||
(( VCS_STATUS_STASHES )) && res+=" ${clean}*${VCS_STATUS_STASHES}"
|
||
# 'merge' if the repo is in an unusual state.
|
||
[[ -n $VCS_STATUS_ACTION ]] && res+=" ${conflicted}${VCS_STATUS_ACTION}"
|
||
# ~42 if have merge conflicts.
|
||
(( VCS_STATUS_NUM_CONFLICTED )) && res+=" ${conflicted}~${VCS_STATUS_NUM_CONFLICTED}"
|
||
# +42 if have staged changes.
|
||
(( VCS_STATUS_NUM_STAGED )) && res+=" ${modified}+${VCS_STATUS_NUM_STAGED}"
|
||
# !42 if have unstaged changes.
|
||
(( VCS_STATUS_NUM_UNSTAGED )) && res+=" ${modified}!${VCS_STATUS_NUM_UNSTAGED}"
|
||
# ?42 if have untracked files. It's really a question mark, your font isn't broken.
|
||
# See POWERLEVEL9K_VCS_UNTRACKED_ICON above if you want to use a different icon.
|
||
# Remove the next line if you don't want to see untracked files at all.
|
||
(( VCS_STATUS_NUM_UNTRACKED )) && res+=" ${untracked}${(g::)POWERLEVEL9K_VCS_UNTRACKED_ICON}${VCS_STATUS_NUM_UNTRACKED}"
|
||
# "─" if the number of unstaged files is unknown. This can happen due to
|
||
# POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY (see below) being set to a non-negative number lower
|
||
# than the number of files in the Git index, or due to bash.showDirtyState being set to false
|
||
# in the repository config. The number of staged and untracked files may also be unknown
|
||
# in this case.
|
||
(( VCS_STATUS_HAS_UNSTAGED == -1 )) && res+=" ${modified}─"
|
||
|
||
typeset -g my_git_format=$res
|
||
}
|
||
functions -M my_git_formatter 2>/dev/null
|
||
|
||
typeset -g POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY=-1
|
||
|
||
typeset -g POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~'
|
||
|
||
typeset -g POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true
|
||
typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${$((my_git_formatter()))+${my_git_format}}'
|
||
typeset -g POWERLEVEL9K_VCS_{STAGED,UNSTAGED,UNTRACKED,CONFLICTED,COMMITS_AHEAD,COMMITS_BEHIND}_MAX_NUM=-1
|
||
|
||
|
||
typeset -g POWERLEVEL9K_VCS_BACKENDS=(git)
|
||
|
||
typeset -g POWERLEVEL9K_STATUS_EXTENDED_STATES=true
|
||
|
||
typeset -g POWERLEVEL9K_STATUS_OK=true
|
||
typeset -g POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION='✔'
|
||
typeset -g POWERLEVEL9K_STATUS_OK_FOREGROUND=2
|
||
typeset -g POWERLEVEL9K_STATUS_OK_BACKGROUND=0
|
||
|
||
typeset -g POWERLEVEL9K_STATUS_OK_PIPE=true
|
||
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION='✔'
|
||
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=2
|
||
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_BACKGROUND=0
|
||
|
||
typeset -g POWERLEVEL9K_STATUS_ERROR=true
|
||
typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='✘'
|
||
typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=3
|
||
typeset -g POWERLEVEL9K_STATUS_ERROR_BACKGROUND=1
|
||
|
||
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true
|
||
typeset -g POWERLEVEL9K_STATUS_VERBOSE_SIGNAME=false
|
||
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION='✘'
|
||
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=3
|
||
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_BACKGROUND=1
|
||
|
||
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE=true
|
||
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION='✘'
|
||
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=3
|
||
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_BACKGROUND=1
|
||
|
||
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=3
|
||
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3
|
||
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0
|
||
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s'
|
||
|
||
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=6
|
||
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND=0
|
||
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false
|
||
|
||
typeset -g POWERLEVEL9K_DIRENV_FOREGROUND=3
|
||
typeset -g POWERLEVEL9K_DIRENV_BACKGROUND=0
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_BACKGROUND=7
|
||
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_SOURCES=(shell local global)
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW=false
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_SHOW_SYSTEM=true
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_SHOW_ON_UPGLOB=
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_RUBY_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_RUBY_BACKGROUND=1
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_PYTHON_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_PYTHON_BACKGROUND=4
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_GOLANG_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_GOLANG_BACKGROUND=4
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_NODEJS_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_NODEJS_BACKGROUND=2
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_RUST_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_RUST_BACKGROUND=208
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_BACKGROUND=5
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_FLUTTER_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_FLUTTER_BACKGROUND=4
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_LUA_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_LUA_BACKGROUND=4
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_JAVA_FOREGROUND=1
|
||
typeset -g POWERLEVEL9K_ASDF_JAVA_BACKGROUND=7
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_PERL_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_PERL_BACKGROUND=4
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_ERLANG_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_ERLANG_BACKGROUND=1
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_ELIXIR_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_ELIXIR_BACKGROUND=5
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_POSTGRES_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_POSTGRES_BACKGROUND=6
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_PHP_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_PHP_BACKGROUND=5
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_HASKELL_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_HASKELL_BACKGROUND=3
|
||
|
||
typeset -g POWERLEVEL9K_ASDF_JULIA_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ASDF_JULIA_BACKGROUND=2
|
||
|
||
typeset -g POWERLEVEL9K_NORDVPN_FOREGROUND=7
|
||
typeset -g POWERLEVEL9K_NORDVPN_BACKGROUND=4
|
||
typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_CONTENT_EXPANSION=
|
||
typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_VISUAL_IDENTIFIER_EXPANSION=
|
||
|
||
typeset -g POWERLEVEL9K_RANGER_FOREGROUND=3
|
||
typeset -g POWERLEVEL9K_RANGER_BACKGROUND=0
|
||
|
||
typeset -g POWERLEVEL9K_YAZI_FOREGROUND=3
|
||
typeset -g POWERLEVEL9K_YAZI_BACKGROUND=0
|
||
|
||
typeset -g POWERLEVEL9K_NNN_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_NNN_BACKGROUND=6
|
||
|
||
typeset -g POWERLEVEL9K_LF_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_LF_BACKGROUND=6
|
||
|
||
typeset -g POWERLEVEL9K_XPLR_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_XPLR_BACKGROUND=6
|
||
|
||
typeset -g POWERLEVEL9K_VIM_SHELL_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_VIM_SHELL_BACKGROUND=2
|
||
|
||
typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_FOREGROUND=3
|
||
typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_BACKGROUND=0
|
||
|
||
typeset -g POWERLEVEL9K_NIX_SHELL_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_NIX_SHELL_BACKGROUND=4
|
||
|
||
|
||
|
||
|
||
typeset -g POWERLEVEL9K_CHEZMOI_SHELL_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_CHEZMOI_SHELL_BACKGROUND=4
|
||
|
||
typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_FOREGROUND=3
|
||
typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_BACKGROUND=0
|
||
typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_BACKGROUND=3
|
||
typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_FOREGROUND=7
|
||
typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_BACKGROUND=1
|
||
typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL=90
|
||
typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_LEVEL=95
|
||
typeset -g POWERLEVEL9K_DISK_USAGE_ONLY_WARNING=false
|
||
|
||
typeset -g POWERLEVEL9K_VI_MODE_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_VI_COMMAND_MODE_STRING=NORMAL
|
||
typeset -g POWERLEVEL9K_VI_MODE_NORMAL_BACKGROUND=2
|
||
typeset -g POWERLEVEL9K_VI_VISUAL_MODE_STRING=VISUAL
|
||
typeset -g POWERLEVEL9K_VI_MODE_VISUAL_BACKGROUND=4
|
||
typeset -g POWERLEVEL9K_VI_OVERWRITE_MODE_STRING=OVERTYPE
|
||
typeset -g POWERLEVEL9K_VI_MODE_OVERWRITE_BACKGROUND=3
|
||
typeset -g POWERLEVEL9K_VI_INSERT_MODE_STRING=
|
||
typeset -g POWERLEVEL9K_VI_MODE_INSERT_FOREGROUND=8
|
||
|
||
typeset -g POWERLEVEL9K_RAM_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_RAM_BACKGROUND=3
|
||
|
||
typeset -g POWERLEVEL9K_SWAP_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_SWAP_BACKGROUND=3
|
||
|
||
typeset -g POWERLEVEL9K_LOAD_WHICH=5
|
||
typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_LOAD_NORMAL_BACKGROUND=2
|
||
typeset -g POWERLEVEL9K_LOAD_WARNING_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_LOAD_WARNING_BACKGROUND=3
|
||
typeset -g POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_LOAD_CRITICAL_BACKGROUND=1
|
||
|
||
typeset -g POWERLEVEL9K_TODO_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_TODO_BACKGROUND=8
|
||
typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_TOTAL=true
|
||
typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_FILTERED=false
|
||
|
||
|
||
|
||
typeset -g POWERLEVEL9K_TIMEWARRIOR_FOREGROUND=255
|
||
typeset -g POWERLEVEL9K_TIMEWARRIOR_BACKGROUND=8
|
||
|
||
typeset -g POWERLEVEL9K_TIMEWARRIOR_CONTENT_EXPANSION='${P9K_CONTENT:0:24}${${P9K_CONTENT:24}:+…}'
|
||
|
||
|
||
typeset -g POWERLEVEL9K_TASKWARRIOR_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_TASKWARRIOR_BACKGROUND=6
|
||
|
||
|
||
|
||
typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_LOCAL_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_LOCAL_BACKGROUND=5
|
||
typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_GLOBAL_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_GLOBAL_BACKGROUND=3
|
||
|
||
|
||
|
||
typeset -g POWERLEVEL9K_CPU_ARCH_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_CPU_ARCH_BACKGROUND=3
|
||
|
||
|
||
|
||
typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=1
|
||
typeset -g POWERLEVEL9K_CONTEXT_ROOT_BACKGROUND=0
|
||
typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_FOREGROUND=3
|
||
typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_BACKGROUND=0
|
||
typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=3
|
||
typeset -g POWERLEVEL9K_CONTEXT_BACKGROUND=0
|
||
|
||
typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%n@%m'
|
||
typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_TEMPLATE='%n@%m'
|
||
typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m'
|
||
|
||
typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=
|
||
|
||
|
||
typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_VIRTUALENV_BACKGROUND=4
|
||
typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false
|
||
typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_WITH_PYENV=false
|
||
typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER=
|
||
|
||
typeset -g POWERLEVEL9K_ANACONDA_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_ANACONDA_BACKGROUND=4
|
||
|
||
typeset -g POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION='${${${${CONDA_PROMPT_MODIFIER#\(}% }%\)}:-${CONDA_PREFIX:t}}'
|
||
|
||
|
||
typeset -g POWERLEVEL9K_PYENV_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_PYENV_BACKGROUND=4
|
||
typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local global)
|
||
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
|
||
typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
|
||
|
||
typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+ $P9K_PYENV_PYTHON_VERSION}'
|
||
|
||
|
||
typeset -g POWERLEVEL9K_GOENV_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_GOENV_BACKGROUND=4
|
||
typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local global)
|
||
typeset -g POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=false
|
||
typeset -g POWERLEVEL9K_GOENV_SHOW_SYSTEM=true
|
||
|
||
typeset -g POWERLEVEL9K_NODENV_FOREGROUND=2
|
||
typeset -g POWERLEVEL9K_NODENV_BACKGROUND=0
|
||
typeset -g POWERLEVEL9K_NODENV_SOURCES=(shell local global)
|
||
typeset -g POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW=false
|
||
typeset -g POWERLEVEL9K_NODENV_SHOW_SYSTEM=true
|
||
|
||
typeset -g POWERLEVEL9K_NVM_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_NVM_BACKGROUND=5
|
||
typeset -g POWERLEVEL9K_NVM_PROMPT_ALWAYS_SHOW=false
|
||
typeset -g POWERLEVEL9K_NVM_SHOW_SYSTEM=true
|
||
|
||
typeset -g POWERLEVEL9K_NODEENV_FOREGROUND=2
|
||
typeset -g POWERLEVEL9K_NODEENV_BACKGROUND=0
|
||
typeset -g POWERLEVEL9K_NODEENV_SHOW_NODE_VERSION=false
|
||
typeset -g POWERLEVEL9K_NODEENV_{LEFT,RIGHT}_DELIMITER=
|
||
|
||
typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=7
|
||
typeset -g POWERLEVEL9K_NODE_VERSION_BACKGROUND=2
|
||
typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true
|
||
|
||
typeset -g POWERLEVEL9K_GO_VERSION_FOREGROUND=255
|
||
typeset -g POWERLEVEL9K_GO_VERSION_BACKGROUND=2
|
||
typeset -g POWERLEVEL9K_GO_VERSION_PROJECT_ONLY=true
|
||
|
||
typeset -g POWERLEVEL9K_RUST_VERSION_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_RUST_VERSION_BACKGROUND=208
|
||
typeset -g POWERLEVEL9K_RUST_VERSION_PROJECT_ONLY=true
|
||
|
||
typeset -g POWERLEVEL9K_DOTNET_VERSION_FOREGROUND=7
|
||
typeset -g POWERLEVEL9K_DOTNET_VERSION_BACKGROUND=5
|
||
typeset -g POWERLEVEL9K_DOTNET_VERSION_PROJECT_ONLY=true
|
||
|
||
typeset -g POWERLEVEL9K_PHP_VERSION_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_PHP_VERSION_BACKGROUND=5
|
||
typeset -g POWERLEVEL9K_PHP_VERSION_PROJECT_ONLY=true
|
||
|
||
typeset -g POWERLEVEL9K_LARAVEL_VERSION_FOREGROUND=1
|
||
typeset -g POWERLEVEL9K_LARAVEL_VERSION_BACKGROUND=7
|
||
|
||
typeset -g POWERLEVEL9K_RBENV_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_RBENV_BACKGROUND=1
|
||
typeset -g POWERLEVEL9K_RBENV_SOURCES=(shell local global)
|
||
typeset -g POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false
|
||
typeset -g POWERLEVEL9K_RBENV_SHOW_SYSTEM=true
|
||
|
||
typeset -g POWERLEVEL9K_JAVA_VERSION_FOREGROUND=1
|
||
typeset -g POWERLEVEL9K_JAVA_VERSION_BACKGROUND=7
|
||
typeset -g POWERLEVEL9K_JAVA_VERSION_PROJECT_ONLY=true
|
||
typeset -g POWERLEVEL9K_JAVA_VERSION_FULL=false
|
||
|
||
typeset -g POWERLEVEL9K_PACKAGE_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_PACKAGE_BACKGROUND=6
|
||
|
||
|
||
|
||
typeset -g POWERLEVEL9K_RVM_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_RVM_BACKGROUND=240
|
||
typeset -g POWERLEVEL9K_RVM_SHOW_GEMSET=false
|
||
typeset -g POWERLEVEL9K_RVM_SHOW_PREFIX=false
|
||
|
||
typeset -g POWERLEVEL9K_FVM_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_FVM_BACKGROUND=4
|
||
|
||
typeset -g POWERLEVEL9K_LUAENV_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_LUAENV_BACKGROUND=4
|
||
typeset -g POWERLEVEL9K_LUAENV_SOURCES=(shell local global)
|
||
typeset -g POWERLEVEL9K_LUAENV_PROMPT_ALWAYS_SHOW=false
|
||
typeset -g POWERLEVEL9K_LUAENV_SHOW_SYSTEM=true
|
||
|
||
typeset -g POWERLEVEL9K_JENV_FOREGROUND=1
|
||
typeset -g POWERLEVEL9K_JENV_BACKGROUND=7
|
||
typeset -g POWERLEVEL9K_JENV_SOURCES=(shell local global)
|
||
typeset -g POWERLEVEL9K_JENV_PROMPT_ALWAYS_SHOW=false
|
||
typeset -g POWERLEVEL9K_JENV_SHOW_SYSTEM=true
|
||
|
||
typeset -g POWERLEVEL9K_PLENV_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_PLENV_BACKGROUND=4
|
||
typeset -g POWERLEVEL9K_PLENV_SOURCES=(shell local global)
|
||
typeset -g POWERLEVEL9K_PLENV_PROMPT_ALWAYS_SHOW=false
|
||
typeset -g POWERLEVEL9K_PLENV_SHOW_SYSTEM=true
|
||
|
||
typeset -g POWERLEVEL9K_PERLBREW_FOREGROUND=67
|
||
typeset -g POWERLEVEL9K_PERLBREW_PROJECT_ONLY=true
|
||
typeset -g POWERLEVEL9K_PERLBREW_SHOW_PREFIX=false
|
||
|
||
typeset -g POWERLEVEL9K_PHPENV_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_PHPENV_BACKGROUND=5
|
||
typeset -g POWERLEVEL9K_PHPENV_SOURCES=(shell local global)
|
||
typeset -g POWERLEVEL9K_PHPENV_PROMPT_ALWAYS_SHOW=false
|
||
typeset -g POWERLEVEL9K_PHPENV_SHOW_SYSTEM=true
|
||
|
||
typeset -g POWERLEVEL9K_SCALAENV_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_SCALAENV_BACKGROUND=1
|
||
typeset -g POWERLEVEL9K_SCALAENV_SOURCES=(shell local global)
|
||
typeset -g POWERLEVEL9K_SCALAENV_PROMPT_ALWAYS_SHOW=false
|
||
typeset -g POWERLEVEL9K_SCALAENV_SHOW_SYSTEM=true
|
||
|
||
typeset -g POWERLEVEL9K_HASKELL_STACK_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_HASKELL_STACK_BACKGROUND=3
|
||
|
||
typeset -g POWERLEVEL9K_HASKELL_STACK_SOURCES=(shell local)
|
||
typeset -g POWERLEVEL9K_HASKELL_STACK_ALWAYS_SHOW=true
|
||
|
||
typeset -g POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT=false
|
||
typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=(
|
||
# '*prod*' PROD # These values are examples that are unlikely
|
||
# '*test*' TEST # to match your needs. Customize them as needed.
|
||
'*' OTHER)
|
||
typeset -g POWERLEVEL9K_TERRAFORM_OTHER_FOREGROUND=4
|
||
typeset -g POWERLEVEL9K_TERRAFORM_OTHER_BACKGROUND=0
|
||
|
||
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_FOREGROUND=4
|
||
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_BACKGROUND=0
|
||
|
||
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_SHOW_ON_COMMAND='terraform|tf'
|
||
|
||
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|flux|fluxctl|stern|kubeseal|skaffold|kubent|kubecolor|cmctl|sparkctl'
|
||
|
||
typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=(
|
||
# '*prod*' PROD # These values are examples that are unlikely
|
||
# '*test*' TEST # to match your needs. Customize them as needed.
|
||
'*' DEFAULT)
|
||
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=7
|
||
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_BACKGROUND=5
|
||
|
||
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION=
|
||
POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${P9K_KUBECONTEXT_CLOUD_CLUSTER:-${P9K_KUBECONTEXT_NAME}}'
|
||
POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${${:-/$P9K_KUBECONTEXT_NAMESPACE}:#/default}'
|
||
|
||
|
||
typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|cdk|terraform|pulumi|terragrunt'
|
||
|
||
typeset -g POWERLEVEL9K_AWS_CLASSES=(
|
||
# '*prod*' PROD # These values are examples that are unlikely
|
||
# '*test*' TEST # to match your needs. Customize them as needed.
|
||
'*' DEFAULT)
|
||
typeset -g POWERLEVEL9K_AWS_DEFAULT_FOREGROUND=7
|
||
typeset -g POWERLEVEL9K_AWS_DEFAULT_BACKGROUND=1
|
||
|
||
typeset -g POWERLEVEL9K_AWS_CONTENT_EXPANSION='${P9K_AWS_PROFILE//\%/%%}${P9K_AWS_REGION:+ ${P9K_AWS_REGION//\%/%%}}'
|
||
|
||
typeset -g POWERLEVEL9K_AWS_EB_ENV_FOREGROUND=2
|
||
typeset -g POWERLEVEL9K_AWS_EB_ENV_BACKGROUND=0
|
||
|
||
typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi|terragrunt'
|
||
|
||
typeset -g POWERLEVEL9K_AZURE_CLASSES=(
|
||
# '*prod*' PROD # These values are examples that are unlikely
|
||
# '*test*' TEST # to match your needs. Customize them as needed.
|
||
'*' OTHER)
|
||
|
||
typeset -g POWERLEVEL9K_AZURE_OTHER_FOREGROUND=7
|
||
typeset -g POWERLEVEL9K_AZURE_OTHER_BACKGROUND=4
|
||
|
||
typeset -g POWERLEVEL9K_GCLOUD_SHOW_ON_COMMAND='gcloud|gcs|gsutil'
|
||
typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=7
|
||
typeset -g POWERLEVEL9K_GCLOUD_BACKGROUND=4
|
||
|
||
typeset -g POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_ID//\%/%%}'
|
||
typeset -g POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_NAME//\%/%%}'
|
||
|
||
typeset -g POWERLEVEL9K_GCLOUD_REFRESH_PROJECT_NAME_SECONDS=60
|
||
|
||
|
||
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi|terragrunt'
|
||
|
||
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=(
|
||
# '*:*prod*:*' PROD # These values are examples that are unlikely
|
||
# '*:*test*:*' TEST # to match your needs. Customize them as needed.
|
||
'*' DEFAULT)
|
||
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_FOREGROUND=7
|
||
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_BACKGROUND=4
|
||
|
||
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_CONTENT_EXPANSION='${P9K_GOOGLE_APP_CRED_PROJECT_ID//\%/%%}'
|
||
|
||
typeset -g POWERLEVEL9K_TOOLBOX_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_TOOLBOX_BACKGROUND=3
|
||
typeset -g POWERLEVEL9K_TOOLBOX_CONTENT_EXPANSION='${P9K_TOOLBOX_NAME:#fedora-toolbox-*}'
|
||
|
||
typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=7
|
||
typeset -g POWERLEVEL9K_PUBLIC_IP_BACKGROUND=0
|
||
|
||
typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_VPN_IP_BACKGROUND=6
|
||
typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION=
|
||
typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(gpd|wg|(.*tun)|tailscale)[0-9]*|(zt.*)'
|
||
typeset -g POWERLEVEL9K_VPN_IP_SHOW_ALL=false
|
||
|
||
typeset -g POWERLEVEL9K_IP_BACKGROUND=4
|
||
typeset -g POWERLEVEL9K_IP_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_IP_CONTENT_EXPANSION='${P9K_IP_RX_RATE:+⇣$P9K_IP_RX_RATE }${P9K_IP_TX_RATE:+⇡$P9K_IP_TX_RATE }$P9K_IP_IP'
|
||
typeset -g POWERLEVEL9K_IP_INTERFACE='[ew].*'
|
||
|
||
typeset -g POWERLEVEL9K_PROXY_FOREGROUND=4
|
||
typeset -g POWERLEVEL9K_PROXY_BACKGROUND=0
|
||
|
||
typeset -g POWERLEVEL9K_BATTERY_LOW_THRESHOLD=20
|
||
typeset -g POWERLEVEL9K_BATTERY_LOW_FOREGROUND=1
|
||
typeset -g POWERLEVEL9K_BATTERY_{CHARGING,CHARGED}_FOREGROUND=2
|
||
typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=3
|
||
typeset -g POWERLEVEL9K_BATTERY_STAGES='\UF008E\UF007A\UF007B\UF007C\UF007D\UF007E\UF007F\UF0080\UF0081\UF0082\UF0079'
|
||
typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false
|
||
typeset -g POWERLEVEL9K_BATTERY_BACKGROUND=0
|
||
|
||
typeset -g POWERLEVEL9K_WIFI_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_WIFI_BACKGROUND=4
|
||
|
||
|
||
typeset -g POWERLEVEL9K_TIME_FOREGROUND=0
|
||
typeset -g POWERLEVEL9K_TIME_BACKGROUND=7
|
||
typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}'
|
||
typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false
|
||
|
||
function prompt_example() {
|
||
p10k segment -b 1 -f 3 -i '⭐' -t 'hello, %n'
|
||
}
|
||
|
||
function instant_prompt_example() {
|
||
# Since prompt_example always makes the same `p10k segment` calls, we can call it from
|
||
# instant_prompt_example. This will give us the same `example` prompt segment in the instant
|
||
# and regular prompts.
|
||
prompt_example
|
||
}
|
||
|
||
typeset -g POWERLEVEL9K_EXAMPLE_FOREGROUND=3
|
||
typeset -g POWERLEVEL9K_EXAMPLE_BACKGROUND=1
|
||
|
||
typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=off
|
||
|
||
typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose
|
||
|
||
typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true
|
||
|
||
(( ! $+functions[p10k] )) || p10k reload
|
||
}
|
||
|
||
typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a}
|
||
|
||
(( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]}
|
||
'builtin' 'unset' 'p10k_config_opts'
|