|
|
|
@ -20,7 +20,7 @@
|
|
|
|
|
unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR'
|
|
|
|
|
|
|
|
|
|
# Zsh >= 5.1 is required.
|
|
|
|
|
[[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return
|
|
|
|
|
autoload -Uz is-at-least && is-at-least 5.1 || return
|
|
|
|
|
|
|
|
|
|
# The list of segments shown on the left. Fill it with the most important segments.
|
|
|
|
|
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
|
|
|
|
@ -65,30 +65,23 @@
|
|
|
|
|
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
|
|
|
|
@ -98,8 +91,6 @@
|
|
|
|
|
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
|
|
|
|
|
# =========================[ Line #2 ]=========================
|
|
|
|
|
newline
|
|
|
|
@ -146,7 +137,7 @@
|
|
|
|
|
# Filler between left and right prompt on the first prompt line. You can set it to ' ', '·' or
|
|
|
|
|
# '─'. The last two make it easier to see the alignment between left and right prompt and to
|
|
|
|
|
# separate prompt from command output. You might want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
|
|
|
|
|
# for more compact prompt if using this option.
|
|
|
|
|
# for more compact prompt if using using this option.
|
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' '
|
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_BACKGROUND=
|
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND=
|
|
|
|
@ -168,9 +159,6 @@
|
|
|
|
|
typeset -g POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='\uE0B0'
|
|
|
|
|
# Separator between different-color segments on the right.
|
|
|
|
|
typeset -g POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='\uE0B2'
|
|
|
|
|
# To remove a separator between two segments, add "_joined" to the second segment name.
|
|
|
|
|
# For example: POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(os_icon context_joined)
|
|
|
|
|
|
|
|
|
|
# The right end of left prompt.
|
|
|
|
|
typeset -g POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0B0'
|
|
|
|
|
# The left end of right prompt.
|
|
|
|
@ -243,7 +231,7 @@
|
|
|
|
|
.java-version
|
|
|
|
|
.perl-version
|
|
|
|
|
.php-version
|
|
|
|
|
.tool-versions
|
|
|
|
|
.tool-version
|
|
|
|
|
.shorten_folder_marker
|
|
|
|
|
.svn
|
|
|
|
|
.terraform
|
|
|
|
@ -352,14 +340,14 @@
|
|
|
|
|
# typeset -g POWERLEVEL9K_DIR_PREFIX='in '
|
|
|
|
|
|
|
|
|
|
#####################################[ vcs: git status ]######################################
|
|
|
|
|
# Version control background colors.
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
# Branch icon. Set this parameter to '\UE0A0 ' for the popular Powerline branch icon.
|
|
|
|
|
# Version control system colors.
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
# Branch icon. Set this parameter to '\uF126 ' for the popular Powerline branch icon.
|
|
|
|
|
typeset -g POWERLEVEL9K_VCS_BRANCH_ICON=
|
|
|
|
|
|
|
|
|
|
# Untracked files icon. It's really a question mark, your font isn't broken.
|
|
|
|
@ -368,7 +356,7 @@
|
|
|
|
|
|
|
|
|
|
# Formatter for Git status.
|
|
|
|
|
#
|
|
|
|
|
# Example output: master wip ⇣42⇡42 *42 merge ~42 +42 !42 ?42.
|
|
|
|
|
# Example output: master ⇣42⇡42 *42 merge ~42 +42 !42 ?42.
|
|
|
|
|
#
|
|
|
|
|
# You can edit the function to customize how Git status looks.
|
|
|
|
|
#
|
|
|
|
@ -392,55 +380,36 @@
|
|
|
|
|
local conflicted='%1F' # red foreground
|
|
|
|
|
|
|
|
|
|
local res
|
|
|
|
|
|
|
|
|
|
local where # branch or tag
|
|
|
|
|
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//\%/%%}"
|
|
|
|
|
res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}"
|
|
|
|
|
where=${(V)VCS_STATUS_LOCAL_BRANCH}
|
|
|
|
|
elif [[ -n $VCS_STATUS_TAG ]]; then
|
|
|
|
|
res+="${meta}#"
|
|
|
|
|
where=${(V)VCS_STATUS_TAG}
|
|
|
|
|
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
|
|
|
|
|
# If local branch name or tag 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.
|
|
|
|
|
(( $#where > 32 )) && where[13,-13]="…"
|
|
|
|
|
|
|
|
|
|
res+="${clean}${where//\%/%%}" # escape %
|
|
|
|
|
|
|
|
|
|
# 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]}"
|
|
|
|
|
# Display the current Git commit if there is no branch or tag.
|
|
|
|
|
# Tip: To always display the current Git commit, remove `[[ -z $where ]] &&` from the next line.
|
|
|
|
|
[[ -z $where ]] && 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}="
|
|
|
|
|
res+="${meta}:${clean}${(V)VCS_STATUS_REMOTE_BRANCH//\%/%%}" # escape %
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# ⇣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}"
|
|
|
|
|
# ⇠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+=" "
|
|
|
|
@ -499,7 +468,7 @@
|
|
|
|
|
|
|
|
|
|
# Show status of repositories of these types. You can add svn and/or hg if you are
|
|
|
|
|
# using them. If you do, your prompt may become slow even when your current directory
|
|
|
|
|
# isn't in an svn or hg repository.
|
|
|
|
|
# isn't in an svn or hg reposotiry.
|
|
|
|
|
typeset -g POWERLEVEL9K_VCS_BACKENDS=(git)
|
|
|
|
|
|
|
|
|
|
##########################[ status: exit code of the last command ]###########################
|
|
|
|
@ -511,37 +480,37 @@
|
|
|
|
|
# it will signify success by turning green.
|
|
|
|
|
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_FOREGROUND=2
|
|
|
|
|
# typeset -g POWERLEVEL9K_STATUS_OK_BACKGROUND=0
|
|
|
|
|
|
|
|
|
|
# Status when some part of a pipe command fails but the overall exit status is zero. It may look
|
|
|
|
|
# like this: 1|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_OK_PIPE_FOREGROUND=2
|
|
|
|
|
# typeset -g POWERLEVEL9K_STATUS_OK_PIPE_BACKGROUND=0
|
|
|
|
|
|
|
|
|
|
# Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as
|
|
|
|
|
# it will signify error by turning red.
|
|
|
|
|
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_FOREGROUND=3
|
|
|
|
|
# typeset -g POWERLEVEL9K_STATUS_ERROR_BACKGROUND=1
|
|
|
|
|
|
|
|
|
|
# Status when the last command was terminated by a signal.
|
|
|
|
|
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true
|
|
|
|
|
# Use terse signal names: "INT" instead of "SIGINT(2)".
|
|
|
|
|
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_SIGNAL_FOREGROUND=3
|
|
|
|
|
# typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_BACKGROUND=1
|
|
|
|
|
|
|
|
|
|
# Status when some part of a pipe command fails and the overall exit status is also non-zero.
|
|
|
|
|
# It may look like this: 1|0.
|
|
|
|
|
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_STATUS_ERROR_PIPE_FOREGROUND=3
|
|
|
|
|
# typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_BACKGROUND=1
|
|
|
|
|
|
|
|
|
|
###################[ command_execution_time: duration of the last command ]###################
|
|
|
|
|
# Execution time color.
|
|
|
|
@ -560,8 +529,8 @@
|
|
|
|
|
|
|
|
|
|
#######################[ background_jobs: presence of background jobs ]#######################
|
|
|
|
|
# Background jobs color.
|
|
|
|
|
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=6
|
|
|
|
|
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=6
|
|
|
|
|
# typeset -g POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND=0
|
|
|
|
|
# Don't show the number of background jobs.
|
|
|
|
|
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false
|
|
|
|
|
# Custom icon.
|
|
|
|
@ -569,8 +538,8 @@
|
|
|
|
|
|
|
|
|
|
#######################[ direnv: direnv status (https://direnv.net/) ]########################
|
|
|
|
|
# Direnv color.
|
|
|
|
|
typeset -g POWERLEVEL9K_DIRENV_FOREGROUND=3
|
|
|
|
|
typeset -g POWERLEVEL9K_DIRENV_BACKGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_DIRENV_FOREGROUND=3
|
|
|
|
|
# typeset -g POWERLEVEL9K_DIRENV_BACKGROUND=0
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_DIRENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
@ -734,8 +703,8 @@
|
|
|
|
|
|
|
|
|
|
##########[ nordvpn: nordvpn connection status, linux only (https://nordvpn.com/) ]###########
|
|
|
|
|
# NordVPN connection indicator color.
|
|
|
|
|
typeset -g POWERLEVEL9K_NORDVPN_FOREGROUND=7
|
|
|
|
|
typeset -g POWERLEVEL9K_NORDVPN_BACKGROUND=4
|
|
|
|
|
# typeset -g POWERLEVEL9K_NORDVPN_FOREGROUND=7
|
|
|
|
|
# typeset -g POWERLEVEL9K_NORDVPN_BACKGROUND=4
|
|
|
|
|
# Hide NordVPN connection indicator when not connected.
|
|
|
|
|
typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_CONTENT_EXPANSION=
|
|
|
|
|
typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_VISUAL_IDENTIFIER_EXPANSION=
|
|
|
|
@ -744,60 +713,36 @@
|
|
|
|
|
|
|
|
|
|
#################[ ranger: ranger shell (https://github.com/ranger/ranger) ]##################
|
|
|
|
|
# Ranger shell color.
|
|
|
|
|
typeset -g POWERLEVEL9K_RANGER_FOREGROUND=3
|
|
|
|
|
typeset -g POWERLEVEL9K_RANGER_BACKGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_RANGER_FOREGROUND=3
|
|
|
|
|
# typeset -g POWERLEVEL9K_RANGER_BACKGROUND=0
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
####################[ yazi: yazi shell (https://github.com/sxyazi/yazi) ]#####################
|
|
|
|
|
# Yazi shell color.
|
|
|
|
|
typeset -g POWERLEVEL9K_YAZI_FOREGROUND=3
|
|
|
|
|
typeset -g POWERLEVEL9K_YAZI_BACKGROUND=0
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_YAZI_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
######################[ nnn: nnn shell (https://github.com/jarun/nnn) ]#######################
|
|
|
|
|
# Nnn shell color.
|
|
|
|
|
typeset -g POWERLEVEL9K_NNN_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_NNN_BACKGROUND=6
|
|
|
|
|
# typeset -g POWERLEVEL9K_NNN_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_NNN_BACKGROUND=6
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
######################[ lf: lf shell (https://github.com/gokcehan/lf) ]#######################
|
|
|
|
|
# lf shell color.
|
|
|
|
|
typeset -g POWERLEVEL9K_LF_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_LF_BACKGROUND=6
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_LF_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]##################
|
|
|
|
|
# xplr shell color.
|
|
|
|
|
typeset -g POWERLEVEL9K_XPLR_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_XPLR_BACKGROUND=6
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_XPLR_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
###########################[ vim_shell: vim shell indicator (:sh) ]###########################
|
|
|
|
|
# Vim shell indicator color.
|
|
|
|
|
typeset -g POWERLEVEL9K_VIM_SHELL_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_VIM_SHELL_BACKGROUND=2
|
|
|
|
|
# typeset -g POWERLEVEL9K_VIM_SHELL_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_VIM_SHELL_BACKGROUND=2
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_VIM_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
######[ midnight_commander: midnight commander shell (https://midnight-commander.org/) ]######
|
|
|
|
|
# Midnight Commander shell color.
|
|
|
|
|
typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_FOREGROUND=3
|
|
|
|
|
typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_BACKGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_FOREGROUND=3
|
|
|
|
|
# typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_BACKGROUND=0
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
#[ nix_shell: nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) ]##
|
|
|
|
|
# Nix shell color.
|
|
|
|
|
typeset -g POWERLEVEL9K_NIX_SHELL_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_NIX_SHELL_BACKGROUND=4
|
|
|
|
|
|
|
|
|
|
# Display the icon of nix_shell if PATH contains a subdirectory of /nix/store.
|
|
|
|
|
# typeset -g POWERLEVEL9K_NIX_SHELL_INFER_FROM_PATH=false
|
|
|
|
|
# typeset -g POWERLEVEL9K_NIX_SHELL_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_NIX_SHELL_BACKGROUND=4
|
|
|
|
|
|
|
|
|
|
# Tip: If you want to see just the icon without "pure" and "impure", uncomment the next line.
|
|
|
|
|
# typeset -g POWERLEVEL9K_NIX_SHELL_CONTENT_EXPANSION=
|
|
|
|
@ -805,21 +750,14 @@
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_NIX_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
##################[ chezmoi_shell: chezmoi shell (https://www.chezmoi.io/) ]##################
|
|
|
|
|
# chezmoi shell color.
|
|
|
|
|
typeset -g POWERLEVEL9K_CHEZMOI_SHELL_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_CHEZMOI_SHELL_BACKGROUND=4
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_CHEZMOI_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
##################################[ disk_usage: disk usage ]##################################
|
|
|
|
|
# Colors for different levels of disk usage.
|
|
|
|
|
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_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
|
|
|
|
|
# Thresholds for different levels of disk usage (percentage points).
|
|
|
|
|
typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL=90
|
|
|
|
|
typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_LEVEL=95
|
|
|
|
@ -843,20 +781,18 @@
|
|
|
|
|
# Text and color for insert vi mode.
|
|
|
|
|
typeset -g POWERLEVEL9K_VI_INSERT_MODE_STRING=
|
|
|
|
|
typeset -g POWERLEVEL9K_VI_MODE_INSERT_FOREGROUND=8
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_VI_MODE_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
######################################[ ram: free RAM ]#######################################
|
|
|
|
|
# RAM color.
|
|
|
|
|
typeset -g POWERLEVEL9K_RAM_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_RAM_BACKGROUND=3
|
|
|
|
|
# typeset -g POWERLEVEL9K_RAM_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_RAM_BACKGROUND=3
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_RAM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
#####################################[ swap: used swap ]######################################
|
|
|
|
|
# Swap color.
|
|
|
|
|
typeset -g POWERLEVEL9K_SWAP_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_SWAP_BACKGROUND=3
|
|
|
|
|
# typeset -g POWERLEVEL9K_SWAP_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_SWAP_BACKGROUND=3
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_SWAP_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
@ -864,21 +800,21 @@
|
|
|
|
|
# Show average CPU load over this many last minutes. Valid values are 1, 5 and 15.
|
|
|
|
|
typeset -g POWERLEVEL9K_LOAD_WHICH=5
|
|
|
|
|
# Load color when load is under 50%.
|
|
|
|
|
typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_LOAD_NORMAL_BACKGROUND=2
|
|
|
|
|
# typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_LOAD_NORMAL_BACKGROUND=2
|
|
|
|
|
# Load color when load is between 50% and 70%.
|
|
|
|
|
typeset -g POWERLEVEL9K_LOAD_WARNING_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_LOAD_WARNING_BACKGROUND=3
|
|
|
|
|
# typeset -g POWERLEVEL9K_LOAD_WARNING_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_LOAD_WARNING_BACKGROUND=3
|
|
|
|
|
# Load color when load is over 70%.
|
|
|
|
|
typeset -g POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_LOAD_CRITICAL_BACKGROUND=1
|
|
|
|
|
# typeset -g POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_LOAD_CRITICAL_BACKGROUND=1
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_LOAD_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
################[ todo: todo items (https://github.com/todotxt/todo.txt-cli) ]################
|
|
|
|
|
# Todo color.
|
|
|
|
|
typeset -g POWERLEVEL9K_TODO_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_TODO_BACKGROUND=8
|
|
|
|
|
# typeset -g POWERLEVEL9K_TODO_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_TODO_BACKGROUND=8
|
|
|
|
|
# Hide todo when the total number of tasks is zero.
|
|
|
|
|
typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_TOTAL=true
|
|
|
|
|
# Hide todo when the number of tasks after filtering is zero.
|
|
|
|
@ -902,8 +838,8 @@
|
|
|
|
|
|
|
|
|
|
###########[ timewarrior: timewarrior tracking status (https://timewarrior.net/) ]############
|
|
|
|
|
# Timewarrior color.
|
|
|
|
|
typeset -g POWERLEVEL9K_TIMEWARRIOR_FOREGROUND=255
|
|
|
|
|
typeset -g POWERLEVEL9K_TIMEWARRIOR_BACKGROUND=8
|
|
|
|
|
# typeset -g POWERLEVEL9K_TIMEWARRIOR_FOREGROUND=255
|
|
|
|
|
# typeset -g POWERLEVEL9K_TIMEWARRIOR_BACKGROUND=8
|
|
|
|
|
|
|
|
|
|
# If the tracked task is longer than 24 characters, truncate and append "…".
|
|
|
|
|
# Tip: To always display tasks without truncation, delete the following parameter.
|
|
|
|
@ -916,8 +852,8 @@
|
|
|
|
|
|
|
|
|
|
##############[ taskwarrior: taskwarrior task count (https://taskwarrior.org/) ]##############
|
|
|
|
|
# Taskwarrior color.
|
|
|
|
|
typeset -g POWERLEVEL9K_TASKWARRIOR_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_TASKWARRIOR_BACKGROUND=6
|
|
|
|
|
# typeset -g POWERLEVEL9K_TASKWARRIOR_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_TASKWARRIOR_BACKGROUND=6
|
|
|
|
|
|
|
|
|
|
# Taskwarrior segment format. The following parameters are available within the expansion.
|
|
|
|
|
#
|
|
|
|
@ -935,33 +871,6 @@
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_TASKWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
######[ per_directory_history: Oh My Zsh per-directory-history local/global indicator ]#######
|
|
|
|
|
# Color when using local/global history.
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
# Tip: Uncomment the next two lines to hide "local"/"global" text and leave just the icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_LOCAL_CONTENT_EXPANSION=''
|
|
|
|
|
# typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_GLOBAL_CONTENT_EXPANSION=''
|
|
|
|
|
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_LOCAL_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
# typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_GLOBAL_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
################################[ cpu_arch: CPU architecture ]################################
|
|
|
|
|
# CPU architecture color.
|
|
|
|
|
typeset -g POWERLEVEL9K_CPU_ARCH_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_CPU_ARCH_BACKGROUND=3
|
|
|
|
|
|
|
|
|
|
# Hide the segment when on a specific CPU architecture.
|
|
|
|
|
# typeset -g POWERLEVEL9K_CPU_ARCH_X86_64_CONTENT_EXPANSION=
|
|
|
|
|
# typeset -g POWERLEVEL9K_CPU_ARCH_X86_64_VISUAL_IDENTIFIER_EXPANSION=
|
|
|
|
|
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_CPU_ARCH_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
##################################[ context: user@hostname ]##################################
|
|
|
|
|
# Context color when running with privileges.
|
|
|
|
|
typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=1
|
|
|
|
@ -991,8 +900,8 @@
|
|
|
|
|
|
|
|
|
|
###[ virtualenv: python virtual environment (https://docs.python.org/3/library/venv.html) ]###
|
|
|
|
|
# Python virtual environment color.
|
|
|
|
|
typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_VIRTUALENV_BACKGROUND=4
|
|
|
|
|
# typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_VIRTUALENV_BACKGROUND=4
|
|
|
|
|
# Don't show Python version next to the virtual environment name.
|
|
|
|
|
typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false
|
|
|
|
|
# If set to "false", won't show virtualenv if pyenv is already shown.
|
|
|
|
@ -1005,8 +914,8 @@
|
|
|
|
|
|
|
|
|
|
#####################[ anaconda: conda environment (https://conda.io/) ]######################
|
|
|
|
|
# Anaconda environment color.
|
|
|
|
|
typeset -g POWERLEVEL9K_ANACONDA_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_ANACONDA_BACKGROUND=4
|
|
|
|
|
# typeset -g POWERLEVEL9K_ANACONDA_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_ANACONDA_BACKGROUND=4
|
|
|
|
|
|
|
|
|
|
# Anaconda segment format. The following parameters are available within the expansion.
|
|
|
|
|
#
|
|
|
|
@ -1039,8 +948,8 @@
|
|
|
|
|
|
|
|
|
|
################[ pyenv: python environment (https://github.com/pyenv/pyenv) ]################
|
|
|
|
|
# Pyenv color.
|
|
|
|
|
typeset -g POWERLEVEL9K_PYENV_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_PYENV_BACKGROUND=4
|
|
|
|
|
# typeset -g POWERLEVEL9K_PYENV_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_PYENV_BACKGROUND=4
|
|
|
|
|
# Hide python version if it doesn't come from one of these sources.
|
|
|
|
|
typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local global)
|
|
|
|
|
# If set to false, hide python version if it's the same as global:
|
|
|
|
@ -1056,18 +965,18 @@
|
|
|
|
|
#
|
|
|
|
|
# The default format has the following logic:
|
|
|
|
|
#
|
|
|
|
|
# 1. Display just "$P9K_CONTENT" if it's equal to "$P9K_PYENV_PYTHON_VERSION" or
|
|
|
|
|
# starts with "$P9K_PYENV_PYTHON_VERSION/".
|
|
|
|
|
# 2. Otherwise display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION".
|
|
|
|
|
typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+ $P9K_PYENV_PYTHON_VERSION}'
|
|
|
|
|
# 1. Display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION" if $P9K_PYENV_PYTHON_VERSION is not
|
|
|
|
|
# empty and unequal to $P9K_CONTENT.
|
|
|
|
|
# 2. Otherwise display just "$P9K_CONTENT".
|
|
|
|
|
typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_PYENV_PYTHON_VERSION:#$P9K_CONTENT}:+ $P9K_PYENV_PYTHON_VERSION}'
|
|
|
|
|
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
################[ goenv: go environment (https://github.com/syndbg/goenv) ]################
|
|
|
|
|
# Goenv color.
|
|
|
|
|
typeset -g POWERLEVEL9K_GOENV_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_GOENV_BACKGROUND=4
|
|
|
|
|
# typeset -g POWERLEVEL9K_GOENV_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_GOENV_BACKGROUND=4
|
|
|
|
|
# Hide go version if it doesn't come from one of these sources.
|
|
|
|
|
typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local global)
|
|
|
|
|
# If set to false, hide go version if it's the same as global:
|
|
|
|
@ -1080,8 +989,8 @@
|
|
|
|
|
|
|
|
|
|
##########[ nodenv: node.js version from nodenv (https://github.com/nodenv/nodenv) ]##########
|
|
|
|
|
# Nodenv color.
|
|
|
|
|
typeset -g POWERLEVEL9K_NODENV_FOREGROUND=2
|
|
|
|
|
typeset -g POWERLEVEL9K_NODENV_BACKGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_NODENV_FOREGROUND=2
|
|
|
|
|
# typeset -g POWERLEVEL9K_NODENV_BACKGROUND=0
|
|
|
|
|
# Hide node version if it doesn't come from one of these sources.
|
|
|
|
|
typeset -g POWERLEVEL9K_NODENV_SOURCES=(shell local global)
|
|
|
|
|
# If set to false, hide node version if it's the same as global:
|
|
|
|
@ -1094,20 +1003,15 @@
|
|
|
|
|
|
|
|
|
|
##############[ nvm: node.js version from nvm (https://github.com/nvm-sh/nvm) ]###############
|
|
|
|
|
# Nvm color.
|
|
|
|
|
typeset -g POWERLEVEL9K_NVM_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_NVM_BACKGROUND=5
|
|
|
|
|
# If set to false, hide node version if it's the same as default:
|
|
|
|
|
# $(nvm version current) == $(nvm version default).
|
|
|
|
|
typeset -g POWERLEVEL9K_NVM_PROMPT_ALWAYS_SHOW=false
|
|
|
|
|
# If set to false, hide node version if it's equal to "system".
|
|
|
|
|
typeset -g POWERLEVEL9K_NVM_SHOW_SYSTEM=true
|
|
|
|
|
# typeset -g POWERLEVEL9K_NVM_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_NVM_BACKGROUND=5
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_NVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
############[ nodeenv: node.js environment (https://github.com/ekalinin/nodeenv) ]############
|
|
|
|
|
# Nodeenv color.
|
|
|
|
|
typeset -g POWERLEVEL9K_NODEENV_FOREGROUND=2
|
|
|
|
|
typeset -g POWERLEVEL9K_NODEENV_BACKGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_NODEENV_FOREGROUND=2
|
|
|
|
|
# typeset -g POWERLEVEL9K_NODEENV_BACKGROUND=0
|
|
|
|
|
# Don't show Node version next to the environment name.
|
|
|
|
|
typeset -g POWERLEVEL9K_NODEENV_SHOW_NODE_VERSION=false
|
|
|
|
|
# Separate environment name from Node version only with a space.
|
|
|
|
@ -1117,8 +1021,8 @@
|
|
|
|
|
|
|
|
|
|
##############################[ node_version: node.js version ]###############################
|
|
|
|
|
# Node version color.
|
|
|
|
|
typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=7
|
|
|
|
|
typeset -g POWERLEVEL9K_NODE_VERSION_BACKGROUND=2
|
|
|
|
|
# typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=7
|
|
|
|
|
# typeset -g POWERLEVEL9K_NODE_VERSION_BACKGROUND=2
|
|
|
|
|
# Show node version only when in a directory tree containing package.json.
|
|
|
|
|
typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true
|
|
|
|
|
# Custom icon.
|
|
|
|
@ -1126,8 +1030,8 @@
|
|
|
|
|
|
|
|
|
|
#######################[ go_version: go version (https://golang.org) ]########################
|
|
|
|
|
# Go version color.
|
|
|
|
|
typeset -g POWERLEVEL9K_GO_VERSION_FOREGROUND=255
|
|
|
|
|
typeset -g POWERLEVEL9K_GO_VERSION_BACKGROUND=2
|
|
|
|
|
# typeset -g POWERLEVEL9K_GO_VERSION_FOREGROUND=255
|
|
|
|
|
# typeset -g POWERLEVEL9K_GO_VERSION_BACKGROUND=2
|
|
|
|
|
# Show go version only when in a go project subdirectory.
|
|
|
|
|
typeset -g POWERLEVEL9K_GO_VERSION_PROJECT_ONLY=true
|
|
|
|
|
# Custom icon.
|
|
|
|
@ -1135,8 +1039,8 @@
|
|
|
|
|
|
|
|
|
|
#################[ rust_version: rustc version (https://www.rust-lang.org) ]##################
|
|
|
|
|
# Rust version color.
|
|
|
|
|
typeset -g POWERLEVEL9K_RUST_VERSION_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_RUST_VERSION_BACKGROUND=208
|
|
|
|
|
# typeset -g POWERLEVEL9K_RUST_VERSION_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_RUST_VERSION_BACKGROUND=208
|
|
|
|
|
# Show rust version only when in a rust project subdirectory.
|
|
|
|
|
typeset -g POWERLEVEL9K_RUST_VERSION_PROJECT_ONLY=true
|
|
|
|
|
# Custom icon.
|
|
|
|
@ -1144,8 +1048,8 @@
|
|
|
|
|
|
|
|
|
|
###############[ dotnet_version: .NET version (https://dotnet.microsoft.com) ]################
|
|
|
|
|
# .NET version color.
|
|
|
|
|
typeset -g POWERLEVEL9K_DOTNET_VERSION_FOREGROUND=7
|
|
|
|
|
typeset -g POWERLEVEL9K_DOTNET_VERSION_BACKGROUND=5
|
|
|
|
|
# typeset -g POWERLEVEL9K_DOTNET_VERSION_FOREGROUND=7
|
|
|
|
|
# typeset -g POWERLEVEL9K_DOTNET_VERSION_BACKGROUND=5
|
|
|
|
|
# Show .NET version only when in a .NET project subdirectory.
|
|
|
|
|
typeset -g POWERLEVEL9K_DOTNET_VERSION_PROJECT_ONLY=true
|
|
|
|
|
# Custom icon.
|
|
|
|
@ -1169,8 +1073,8 @@
|
|
|
|
|
|
|
|
|
|
#############[ rbenv: ruby version from rbenv (https://github.com/rbenv/rbenv) ]##############
|
|
|
|
|
# Rbenv color.
|
|
|
|
|
typeset -g POWERLEVEL9K_RBENV_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_RBENV_BACKGROUND=1
|
|
|
|
|
# typeset -g POWERLEVEL9K_RBENV_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_RBENV_BACKGROUND=1
|
|
|
|
|
# Hide ruby version if it doesn't come from one of these sources.
|
|
|
|
|
typeset -g POWERLEVEL9K_RBENV_SOURCES=(shell local global)
|
|
|
|
|
# If set to false, hide ruby version if it's the same as global:
|
|
|
|
@ -1194,8 +1098,8 @@
|
|
|
|
|
|
|
|
|
|
###[ package: name@version from package.json (https://docs.npmjs.com/files/package.json) ]####
|
|
|
|
|
# Package color.
|
|
|
|
|
typeset -g POWERLEVEL9K_PACKAGE_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_PACKAGE_BACKGROUND=6
|
|
|
|
|
# typeset -g POWERLEVEL9K_PACKAGE_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_PACKAGE_BACKGROUND=6
|
|
|
|
|
|
|
|
|
|
# Package format. The following parameters are available within the expansion.
|
|
|
|
|
#
|
|
|
|
@ -1209,8 +1113,8 @@
|
|
|
|
|
|
|
|
|
|
#######################[ rvm: ruby version from rvm (https://rvm.io) ]########################
|
|
|
|
|
# Rvm color.
|
|
|
|
|
typeset -g POWERLEVEL9K_RVM_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_RVM_BACKGROUND=240
|
|
|
|
|
# typeset -g POWERLEVEL9K_RVM_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_RVM_BACKGROUND=240
|
|
|
|
|
# Don't show @gemset at the end.
|
|
|
|
|
typeset -g POWERLEVEL9K_RVM_SHOW_GEMSET=false
|
|
|
|
|
# Don't show ruby- at the front.
|
|
|
|
@ -1220,15 +1124,15 @@
|
|
|
|
|
|
|
|
|
|
###########[ fvm: flutter version management (https://github.com/leoafarias/fvm) ]############
|
|
|
|
|
# Fvm color.
|
|
|
|
|
typeset -g POWERLEVEL9K_FVM_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_FVM_BACKGROUND=4
|
|
|
|
|
# typeset -g POWERLEVEL9K_FVM_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_FVM_BACKGROUND=4
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_FVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
##########[ luaenv: lua version from luaenv (https://github.com/cehoffman/luaenv) ]###########
|
|
|
|
|
# Lua color.
|
|
|
|
|
typeset -g POWERLEVEL9K_LUAENV_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_LUAENV_BACKGROUND=4
|
|
|
|
|
# typeset -g POWERLEVEL9K_LUAENV_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_LUAENV_BACKGROUND=4
|
|
|
|
|
# Hide lua version if it doesn't come from one of these sources.
|
|
|
|
|
typeset -g POWERLEVEL9K_LUAENV_SOURCES=(shell local global)
|
|
|
|
|
# If set to false, hide lua version if it's the same as global:
|
|
|
|
@ -1241,8 +1145,8 @@
|
|
|
|
|
|
|
|
|
|
###############[ jenv: java version from jenv (https://github.com/jenv/jenv) ]################
|
|
|
|
|
# Java color.
|
|
|
|
|
typeset -g POWERLEVEL9K_JENV_FOREGROUND=1
|
|
|
|
|
typeset -g POWERLEVEL9K_JENV_BACKGROUND=7
|
|
|
|
|
# typeset -g POWERLEVEL9K_JENV_FOREGROUND=1
|
|
|
|
|
# typeset -g POWERLEVEL9K_JENV_BACKGROUND=7
|
|
|
|
|
# Hide java version if it doesn't come from one of these sources.
|
|
|
|
|
typeset -g POWERLEVEL9K_JENV_SOURCES=(shell local global)
|
|
|
|
|
# If set to false, hide java version if it's the same as global:
|
|
|
|
@ -1255,8 +1159,8 @@
|
|
|
|
|
|
|
|
|
|
###########[ plenv: perl version from plenv (https://github.com/tokuhirom/plenv) ]############
|
|
|
|
|
# Perl color.
|
|
|
|
|
typeset -g POWERLEVEL9K_PLENV_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_PLENV_BACKGROUND=4
|
|
|
|
|
# typeset -g POWERLEVEL9K_PLENV_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_PLENV_BACKGROUND=4
|
|
|
|
|
# Hide perl version if it doesn't come from one of these sources.
|
|
|
|
|
typeset -g POWERLEVEL9K_PLENV_SOURCES=(shell local global)
|
|
|
|
|
# If set to false, hide perl version if it's the same as global:
|
|
|
|
@ -1267,20 +1171,10 @@
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_PLENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
###########[ perlbrew: perl version from perlbrew (https://github.com/gugod/App-perlbrew) ]############
|
|
|
|
|
# Perlbrew color.
|
|
|
|
|
typeset -g POWERLEVEL9K_PERLBREW_FOREGROUND=67
|
|
|
|
|
# Show perlbrew version only when in a perl project subdirectory.
|
|
|
|
|
typeset -g POWERLEVEL9K_PERLBREW_PROJECT_ONLY=true
|
|
|
|
|
# Don't show "perl-" at the front.
|
|
|
|
|
typeset -g POWERLEVEL9K_PERLBREW_SHOW_PREFIX=false
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_PERLBREW_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
############[ phpenv: php version from phpenv (https://github.com/phpenv/phpenv) ]############
|
|
|
|
|
# PHP color.
|
|
|
|
|
typeset -g POWERLEVEL9K_PHPENV_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_PHPENV_BACKGROUND=5
|
|
|
|
|
# typeset -g POWERLEVEL9K_PHPENV_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_PHPENV_BACKGROUND=5
|
|
|
|
|
# Hide php version if it doesn't come from one of these sources.
|
|
|
|
|
typeset -g POWERLEVEL9K_PHPENV_SOURCES=(shell local global)
|
|
|
|
|
# If set to false, hide php version if it's the same as global:
|
|
|
|
@ -1293,8 +1187,8 @@
|
|
|
|
|
|
|
|
|
|
#######[ scalaenv: scala version from scalaenv (https://github.com/scalaenv/scalaenv) ]#######
|
|
|
|
|
# Scala color.
|
|
|
|
|
typeset -g POWERLEVEL9K_SCALAENV_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_SCALAENV_BACKGROUND=1
|
|
|
|
|
# typeset -g POWERLEVEL9K_SCALAENV_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_SCALAENV_BACKGROUND=1
|
|
|
|
|
# Hide scala version if it doesn't come from one of these sources.
|
|
|
|
|
typeset -g POWERLEVEL9K_SCALAENV_SOURCES=(shell local global)
|
|
|
|
|
# If set to false, hide scala version if it's the same as global:
|
|
|
|
@ -1307,8 +1201,8 @@
|
|
|
|
|
|
|
|
|
|
##########[ haskell_stack: haskell version from stack (https://haskellstack.org/) ]###########
|
|
|
|
|
# Haskell color.
|
|
|
|
|
typeset -g POWERLEVEL9K_HASKELL_STACK_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_HASKELL_STACK_BACKGROUND=3
|
|
|
|
|
# typeset -g POWERLEVEL9K_HASKELL_STACK_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_HASKELL_STACK_BACKGROUND=3
|
|
|
|
|
|
|
|
|
|
# Hide haskell version if it doesn't come from one of these sources.
|
|
|
|
|
#
|
|
|
|
@ -1356,20 +1250,10 @@
|
|
|
|
|
typeset -g POWERLEVEL9K_TERRAFORM_OTHER_BACKGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_TERRAFORM_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
#############[ terraform_version: terraform version (https://www.terraform.io) ]##############
|
|
|
|
|
# Terraform version color.
|
|
|
|
|
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_FOREGROUND=4
|
|
|
|
|
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_BACKGROUND=0
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_TERRAFORM_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
################[ terraform_version: It shows active terraform version (https://www.terraform.io) ]#################
|
|
|
|
|
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_SHOW_ON_COMMAND='terraform|tf'
|
|
|
|
|
|
|
|
|
|
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
|
|
|
|
# Show kubecontext only when the command you are typing invokes one of these tools.
|
|
|
|
|
# Show kubecontext only when the the command you are typing invokes one of these tools.
|
|
|
|
|
# Tip: Remove the next line to always show kubecontext.
|
|
|
|
|
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_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile'
|
|
|
|
|
|
|
|
|
|
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
|
|
|
|
# different contexts.
|
|
|
|
@ -1456,9 +1340,9 @@
|
|
|
|
|
# typeset -g POWERLEVEL9K_KUBECONTEXT_PREFIX='at '
|
|
|
|
|
|
|
|
|
|
#[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]#
|
|
|
|
|
# Show aws only when the command you are typing invokes one of these tools.
|
|
|
|
|
# Show aws only when the the command you are typing invokes one of these tools.
|
|
|
|
|
# Tip: Remove the next line to always show aws.
|
|
|
|
|
typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|cdk|terraform|pulumi|terragrunt'
|
|
|
|
|
typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|terraform|pulumi|terragrunt'
|
|
|
|
|
|
|
|
|
|
# POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element
|
|
|
|
|
# in each pair defines a pattern against which the current AWS profile gets matched.
|
|
|
|
@ -1487,70 +1371,34 @@
|
|
|
|
|
# '*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_DEFAULT_FOREGROUND=7
|
|
|
|
|
# typeset -g POWERLEVEL9K_AWS_DEFAULT_BACKGROUND=1
|
|
|
|
|
# typeset -g POWERLEVEL9K_AWS_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
# AWS segment format. The following parameters are available within the expansion.
|
|
|
|
|
#
|
|
|
|
|
# - P9K_AWS_PROFILE The name of the current AWS profile.
|
|
|
|
|
# - P9K_AWS_REGION The region associated with the current AWS profile.
|
|
|
|
|
typeset -g POWERLEVEL9K_AWS_CONTENT_EXPANSION='${P9K_AWS_PROFILE//\%/%%}${P9K_AWS_REGION:+ ${P9K_AWS_REGION//\%/%%}}'
|
|
|
|
|
|
|
|
|
|
#[ aws_eb_env: aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/) ]#
|
|
|
|
|
# AWS Elastic Beanstalk environment color.
|
|
|
|
|
typeset -g POWERLEVEL9K_AWS_EB_ENV_FOREGROUND=2
|
|
|
|
|
typeset -g POWERLEVEL9K_AWS_EB_ENV_BACKGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_AWS_EB_ENV_FOREGROUND=2
|
|
|
|
|
# typeset -g POWERLEVEL9K_AWS_EB_ENV_BACKGROUND=0
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]##########
|
|
|
|
|
# Show azure only when the command you are typing invokes one of these tools.
|
|
|
|
|
# Show azure only when the the command you are typing invokes one of these tools.
|
|
|
|
|
# Tip: Remove the next line to always show azure.
|
|
|
|
|
typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi|terragrunt'
|
|
|
|
|
|
|
|
|
|
# POWERLEVEL9K_AZURE_CLASSES is an array with even number of elements. The first element
|
|
|
|
|
# in each pair defines a pattern against which the current azure account name gets matched.
|
|
|
|
|
# More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)
|
|
|
|
|
# that gets matched. If you unset all POWERLEVEL9K_AZURE_*CONTENT_EXPANSION parameters,
|
|
|
|
|
# you'll see this value in your prompt. The second element of each pair in
|
|
|
|
|
# POWERLEVEL9K_AZURE_CLASSES defines the account class. Patterns are tried in order. The
|
|
|
|
|
# first match wins.
|
|
|
|
|
#
|
|
|
|
|
# For example, given these settings:
|
|
|
|
|
#
|
|
|
|
|
# typeset -g POWERLEVEL9K_AZURE_CLASSES=(
|
|
|
|
|
# '*prod*' PROD
|
|
|
|
|
# '*test*' TEST
|
|
|
|
|
# '*' OTHER)
|
|
|
|
|
#
|
|
|
|
|
# If your current azure account is "company_test", its class is TEST because "company_test"
|
|
|
|
|
# doesn't match the pattern '*prod*' but does match '*test*'.
|
|
|
|
|
#
|
|
|
|
|
# You can define different colors, icons and content expansions for different classes:
|
|
|
|
|
#
|
|
|
|
|
# typeset -g POWERLEVEL9K_AZURE_TEST_FOREGROUND=2
|
|
|
|
|
# typeset -g POWERLEVEL9K_AZURE_TEST_BACKGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_AZURE_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
# typeset -g POWERLEVEL9K_AZURE_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
# Azure account name color.
|
|
|
|
|
typeset -g POWERLEVEL9K_AZURE_OTHER_FOREGROUND=7
|
|
|
|
|
typeset -g POWERLEVEL9K_AZURE_OTHER_BACKGROUND=4
|
|
|
|
|
# typeset -g POWERLEVEL9K_AZURE_FOREGROUND=7
|
|
|
|
|
# typeset -g POWERLEVEL9K_AZURE_BACKGROUND=4
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_AZURE_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
# typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
##########[ gcloud: google cloud account and project (https://cloud.google.com/) ]###########
|
|
|
|
|
# Show gcloud only when the command you are typing invokes one of these tools.
|
|
|
|
|
# Show gcloud only when the the command you are typing invokes one of these tools.
|
|
|
|
|
# Tip: Remove the next line to always show gcloud.
|
|
|
|
|
typeset -g POWERLEVEL9K_GCLOUD_SHOW_ON_COMMAND='gcloud|gcs|gsutil'
|
|
|
|
|
typeset -g POWERLEVEL9K_GCLOUD_SHOW_ON_COMMAND='gcloud|gcs'
|
|
|
|
|
# Google cloud color.
|
|
|
|
|
typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=7
|
|
|
|
|
typeset -g POWERLEVEL9K_GCLOUD_BACKGROUND=4
|
|
|
|
|
# typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=7
|
|
|
|
|
# typeset -g POWERLEVEL9K_GCLOUD_BACKGROUND=4
|
|
|
|
|
|
|
|
|
|
# Google cloud format. Change the value of POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION and/or
|
|
|
|
|
# POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION if the default is too verbose or not informative
|
|
|
|
@ -1587,7 +1435,7 @@
|
|
|
|
|
# typeset -g POWERLEVEL9K_GCLOUD_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
#[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]#
|
|
|
|
|
# Show google_app_cred only when the command you are typing invokes one of these tools.
|
|
|
|
|
# Show google_app_cred only when the the command you are typing invokes one of these tools.
|
|
|
|
|
# Tip: Remove the next line to always show google_app_cred.
|
|
|
|
|
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi|terragrunt'
|
|
|
|
|
|
|
|
|
@ -1621,8 +1469,8 @@
|
|
|
|
|
# '*:*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_FOREGROUND=7
|
|
|
|
|
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_BACKGROUND=4
|
|
|
|
|
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
# Use POWERLEVEL9K_GOOGLE_APP_CRED_CONTENT_EXPANSION to specify the content displayed by
|
|
|
|
@ -1641,34 +1489,23 @@
|
|
|
|
|
# Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurrences of '%' replaced by '%%'.
|
|
|
|
|
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_CONTENT_EXPANSION='${P9K_GOOGLE_APP_CRED_PROJECT_ID//\%/%%}'
|
|
|
|
|
|
|
|
|
|
##############[ toolbox: toolbox name (https://github.com/containers/toolbox) ]###############
|
|
|
|
|
# Toolbox color.
|
|
|
|
|
typeset -g POWERLEVEL9K_TOOLBOX_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_TOOLBOX_BACKGROUND=3
|
|
|
|
|
# Don't display the name of the toolbox if it matches fedora-toolbox-*.
|
|
|
|
|
typeset -g POWERLEVEL9K_TOOLBOX_CONTENT_EXPANSION='${P9K_TOOLBOX_NAME:#fedora-toolbox-*}'
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_TOOLBOX_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
# Custom prefix.
|
|
|
|
|
# typeset -g POWERLEVEL9K_TOOLBOX_PREFIX='in '
|
|
|
|
|
|
|
|
|
|
###############################[ public_ip: public IP address ]###############################
|
|
|
|
|
# Public IP color.
|
|
|
|
|
typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=7
|
|
|
|
|
typeset -g POWERLEVEL9K_PUBLIC_IP_BACKGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=7
|
|
|
|
|
# typeset -g POWERLEVEL9K_PUBLIC_IP_BACKGROUND=0
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_PUBLIC_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
########################[ vpn_ip: virtual private network indicator ]#########################
|
|
|
|
|
# VPN IP color.
|
|
|
|
|
typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_VPN_IP_BACKGROUND=6
|
|
|
|
|
# typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_VPN_IP_BACKGROUND=6
|
|
|
|
|
# When on VPN, show just an icon without the IP address.
|
|
|
|
|
# Tip: To display the private IP address when on VPN, remove the next line.
|
|
|
|
|
typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION=
|
|
|
|
|
# Regular expression for the VPN network interface. Run `ifconfig` or `ip -4 a show` while on VPN
|
|
|
|
|
# to see the name of the interface.
|
|
|
|
|
typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(gpd|wg|(.*tun)|tailscale)[0-9]*|(zt.*)'
|
|
|
|
|
typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(gpd|wg|(.*tun))[0-9]*'
|
|
|
|
|
# If set to true, show one segment per matching network interface. If set to false, show only
|
|
|
|
|
# one segment corresponding to the first matching network interface.
|
|
|
|
|
# Tip: If you set it to true, you'll probably want to unset POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION.
|
|
|
|
@ -1683,26 +1520,24 @@
|
|
|
|
|
# The following parameters are accessible within the expansion:
|
|
|
|
|
#
|
|
|
|
|
# Parameter | Meaning
|
|
|
|
|
# ----------------------+-------------------------------------------
|
|
|
|
|
# P9K_IP_IP | IP address
|
|
|
|
|
# P9K_IP_INTERFACE | network interface
|
|
|
|
|
# P9K_IP_RX_BYTES | total number of bytes received
|
|
|
|
|
# P9K_IP_TX_BYTES | total number of bytes sent
|
|
|
|
|
# P9K_IP_RX_BYTES_DELTA | number of bytes received since last prompt
|
|
|
|
|
# P9K_IP_TX_BYTES_DELTA | number of bytes sent since last prompt
|
|
|
|
|
# P9K_IP_RX_RATE | receive rate (since last prompt)
|
|
|
|
|
# P9K_IP_TX_RATE | send rate (since last prompt)
|
|
|
|
|
# ----------------------+---------------
|
|
|
|
|
# P9K_IP_IP | IP address
|
|
|
|
|
# P9K_IP_INTERFACE | network interface
|
|
|
|
|
# P9K_IP_RX_BYTES | total number of bytes received
|
|
|
|
|
# P9K_IP_TX_BYTES | total number of bytes sent
|
|
|
|
|
# P9K_IP_RX_RATE | receive rate (since last prompt)
|
|
|
|
|
# P9K_IP_TX_RATE | send rate (since last prompt)
|
|
|
|
|
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'
|
|
|
|
|
# Show information for the first network interface whose name matches this regular expression.
|
|
|
|
|
# Run `ifconfig` or `ip -4 a show` to see the names of all network interfaces.
|
|
|
|
|
typeset -g POWERLEVEL9K_IP_INTERFACE='[ew].*'
|
|
|
|
|
typeset -g POWERLEVEL9K_IP_INTERFACE='e.*'
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
#########################[ proxy: system-wide http/https/ftp proxy ]##########################
|
|
|
|
|
# Proxy color.
|
|
|
|
|
typeset -g POWERLEVEL9K_PROXY_FOREGROUND=4
|
|
|
|
|
typeset -g POWERLEVEL9K_PROXY_BACKGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_PROXY_FOREGROUND=4
|
|
|
|
|
# typeset -g POWERLEVEL9K_PROXY_BACKGROUND=0
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_PROXY_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
@ -1718,12 +1553,12 @@
|
|
|
|
|
typeset -g POWERLEVEL9K_BATTERY_STAGES=('%K{232}▁' '%K{232}▂' '%K{232}▃' '%K{232}▄' '%K{232}▅' '%K{232}▆' '%K{232}▇' '%K{232}█')
|
|
|
|
|
# Don't show the remaining time to charge/discharge.
|
|
|
|
|
typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false
|
|
|
|
|
typeset -g POWERLEVEL9K_BATTERY_BACKGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_BATTERY_BACKGROUND=0
|
|
|
|
|
|
|
|
|
|
#####################################[ wifi: wifi speed ]#####################################
|
|
|
|
|
# WiFi color.
|
|
|
|
|
typeset -g POWERLEVEL9K_WIFI_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_WIFI_BACKGROUND=4
|
|
|
|
|
# typeset -g POWERLEVEL9K_WIFI_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_WIFI_BACKGROUND=4
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
@ -1749,8 +1584,8 @@
|
|
|
|
|
|
|
|
|
|
####################################[ time: current time ]####################################
|
|
|
|
|
# Current time color.
|
|
|
|
|
typeset -g POWERLEVEL9K_TIME_FOREGROUND=0
|
|
|
|
|
typeset -g POWERLEVEL9K_TIME_BACKGROUND=7
|
|
|
|
|
# typeset -g POWERLEVEL9K_TIME_FOREGROUND=0
|
|
|
|
|
# typeset -g POWERLEVEL9K_TIME_BACKGROUND=7
|
|
|
|
|
# Format for the current time: 09:51:02. See `man 3 strftime`.
|
|
|
|
|
typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}'
|
|
|
|
|
# If set to true, time will update when you hit enter. This way prompts for the past
|
|
|
|
@ -1774,7 +1609,7 @@
|
|
|
|
|
|
|
|
|
|
# User-defined prompt segments may optionally provide an instant_prompt_* function. Its job
|
|
|
|
|
# is to generate the prompt segment for display in instant prompt. See
|
|
|
|
|
# https://github.com/romkatv/powerlevel10k#instant-prompt.
|
|
|
|
|
# https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt.
|
|
|
|
|
#
|
|
|
|
|
# Powerlevel10k will call instant_prompt_* at the same time as the regular prompt_* function
|
|
|
|
|
# and will record all `p10k segment` calls it makes. When displaying instant prompt, Powerlevel10k
|
|
|
|
@ -1792,8 +1627,7 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# User-defined prompt segments can be customized the same way as built-in segments.
|
|
|
|
|
typeset -g POWERLEVEL9K_EXAMPLE_FOREGROUND=3
|
|
|
|
|
typeset -g POWERLEVEL9K_EXAMPLE_BACKGROUND=1
|
|
|
|
|
# typeset -g POWERLEVEL9K_EXAMPLE_FOREGROUND=3
|
|
|
|
|
# typeset -g POWERLEVEL9K_EXAMPLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
# Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt
|
|
|
|
@ -1811,7 +1645,7 @@
|
|
|
|
|
# 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#instant-prompt.
|
|
|
|
|
# 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.
|
|
|
|
|