dot

vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks

1844 lines95954 bytesBourne Again Shell (bash)
1# Generated by Powerlevel10k configuration wizard on 2026-06-14 at 03:34 CEST.
2# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 49619.
3# Wizard options: nerdfont-v3 + powerline, small icons, rainbow, unicode,
4# slanted separators, slanted heads, sharp tails, 2 lines, dotted, full frame,
5# dark-ornaments, compact, many icons, concise, transient_prompt,
6# instant_prompt=verbose.
7# Type `p10k configure` to generate another config.
8#
9# Config for Powerlevel10k with powerline prompt style with colorful background.
10# Type `p10k configure` to generate your own config based on it.
11#
12# Tip: Looking for a nice color? Here's a one-liner to print colormap.
13#
14# for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done
15
16# Temporarily change options.
17'builtin' 'local' '-a' 'p10k_config_opts'
18[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases')
19[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob')
20[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
21'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
22
23() {
24 emulate -L zsh -o extended_glob
25
26 # Unset all configuration options. This allows you to apply configuration changes without
27 # restarting zsh. Edit ~/.p10k.zsh and type `source ~/.p10k.zsh`.
28 unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR'
29
30 # Zsh >= 5.1 is required.
31 [[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return
32
33 # The list of segments shown on the left. Fill it with the most important segments.
34 typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
35 # =========================[ Line #1 ]=========================
36 os_icon # os identifier
37 dir # current directory
38 vcs # git status
39 # =========================[ Line #2 ]=========================
40 newline # \n
41 # prompt_char # prompt symbol
42 )
43
44 # The list of segments shown on the right. Fill it with less important segments.
45 # Right prompt on the last prompt line (where you are typing your commands) gets
46 # automatically hidden when the input line reaches it. Right prompt above the
47 # last prompt line gets hidden if it would overlap with left prompt.
48 typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
49 # =========================[ Line #1 ]=========================
50 status # exit code of the last command
51 command_execution_time # duration of the last command
52 background_jobs # presence of background jobs
53 direnv # direnv status (https://direnv.net/)
54 asdf # asdf version manager (https://github.com/asdf-vm/asdf)
55 virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
56 anaconda # conda environment (https://conda.io/)
57 pyenv # python environment (https://github.com/pyenv/pyenv)
58 goenv # go environment (https://github.com/syndbg/goenv)
59 nodenv # node.js version from nodenv (https://github.com/nodenv/nodenv)
60 nvm # node.js version from nvm (https://github.com/nvm-sh/nvm)
61 nodeenv # node.js environment (https://github.com/ekalinin/nodeenv)
62 # node_version # node.js version
63 # go_version # go version (https://golang.org)
64 # rust_version # rustc version (https://www.rust-lang.org)
65 # dotnet_version # .NET version (https://dotnet.microsoft.com)
66 # php_version # php version (https://www.php.net/)
67 # laravel_version # laravel php framework version (https://laravel.com/)
68 # java_version # java version (https://www.java.com/)
69 # package # name@version from package.json (https://docs.npmjs.com/files/package.json)
70 rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
71 rvm # ruby version from rvm (https://rvm.io)
72 fvm # flutter version management (https://github.com/leoafarias/fvm)
73 luaenv # lua version from luaenv (https://github.com/cehoffman/luaenv)
74 jenv # java version from jenv (https://github.com/jenv/jenv)
75 plenv # perl version from plenv (https://github.com/tokuhirom/plenv)
76 perlbrew # perl version from perlbrew (https://github.com/gugod/App-perlbrew)
77 phpenv # php version from phpenv (https://github.com/phpenv/phpenv)
78 scalaenv # scala version from scalaenv (https://github.com/scalaenv/scalaenv)
79 haskell_stack # haskell version from stack (https://haskellstack.org/)
80 kubecontext # current kubernetes context (https://kubernetes.io/)
81 terraform # terraform workspace (https://www.terraform.io)
82 # terraform_version # terraform version (https://www.terraform.io)
83 aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
84 aws_eb_env # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/)
85 azure # azure account name (https://docs.microsoft.com/en-us/cli/azure)
86 gcloud # google cloud cli account and project (https://cloud.google.com/)
87 google_app_cred # google application credentials (https://cloud.google.com/docs/authentication/production)
88 toolbox # toolbox name (https://github.com/containers/toolbox)
89 context # user@hostname
90 nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
91 ranger # ranger shell (https://github.com/ranger/ranger)
92 yazi # yazi shell (https://github.com/sxyazi/yazi)
93 nnn # nnn shell (https://github.com/jarun/nnn)
94 lf # lf shell (https://github.com/gokcehan/lf)
95 xplr # xplr shell (https://github.com/sayanarijit/xplr)
96 vim_shell # vim shell indicator (:sh)
97 midnight_commander # midnight commander shell (https://midnight-commander.org/)
98 nix_shell # nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html)
99 chezmoi_shell # chezmoi shell (https://www.chezmoi.io/)
100 vi_mode # vi mode (you don't need this if you've enabled prompt_char)
101 # vpn_ip # virtual private network indicator
102 # load # CPU load
103 # disk_usage # disk usage
104 # ram # free RAM
105 # swap # used swap
106 todo # todo items (https://github.com/todotxt/todo.txt-cli)
107 timewarrior # timewarrior tracking status (https://timewarrior.net/)
108 taskwarrior # taskwarrior task count (https://taskwarrior.org/)
109 per_directory_history # Oh My Zsh per-directory-history local/global indicator
110 # cpu_arch # CPU architecture
111 # time # current time
112 # =========================[ Line #2 ]=========================
113 newline
114 # ip # ip address and bandwidth usage for a specified network interface
115 # public_ip # public IP address
116 # proxy # system-wide http/https/ftp proxy
117 # battery # internal battery
118 # wifi # wifi speed
119 # example # example user-defined segment (see prompt_example function below)
120 )
121
122 # Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.
123 typeset -g POWERLEVEL9K_MODE=nerdfont-v3
124 # When set to `moderate`, some icons will have an extra space after them. This is meant to avoid
125 # icon overlap when using non-monospace fonts. When set to `none`, spaces are not added.
126 typeset -g POWERLEVEL9K_ICON_PADDING=none
127
128 # When set to true, icons appear before content on both sides of the prompt. When set
129 # to false, icons go after content. If empty or not set, icons go before content in the left
130 # prompt and after content in the right prompt.
131 #
132 # You can also override it for a specific segment:
133 #
134 # POWERLEVEL9K_STATUS_ICON_BEFORE_CONTENT=false
135 #
136 # Or for a specific segment in specific state:
137 #
138 # POWERLEVEL9K_DIR_NOT_WRITABLE_ICON_BEFORE_CONTENT=false
139 typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT=
140
141 # Add an empty line before each prompt.
142 typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
143
144 # Connect left prompt lines with these symbols. You'll probably want to use the same color
145 # as POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND below.
146 typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%240F╭─'
147 typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX='%240F├─'
148 typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%240F╰─'
149 # Connect right prompt lines with these symbols.
150 typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX='%240F─╮'
151 typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX='%240F─┤'
152 typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX='%240F─╯'
153
154 # Filler between left and right prompt on the first prompt line. You can set it to ' ', '·' or
155 # '─'. The last two make it easier to see the alignment between left and right prompt and to
156 # separate prompt from command output. You might want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
157 # for more compact prompt if using this option.
158 typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR='·'
159 typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_BACKGROUND=
160 typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND=
161 if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then
162 # The color of the filler. You'll probably want to match the color of POWERLEVEL9K_MULTILINE
163 # ornaments defined above.
164 typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=240
165 # Start filler from the edge of the screen if there are no left segments on the first line.
166 typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}'
167 # End filler on the edge of the screen if there are no right segments on the first line.
168 typeset -g POWERLEVEL9K_EMPTY_LINE_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='%{%}'
169 fi
170
171 # Separator between same-color segments on the left.
172 typeset -g POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR='\u2571'
173 # Separator between same-color segments on the right.
174 typeset -g POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR='\u2571'
175 # Separator between different-color segments on the left.
176 typeset -g POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='\uE0BC'
177 # Separator between different-color segments on the right.
178 typeset -g POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='\uE0BA'
179 # To remove a separator between two segments, add "_joined" to the second segment name.
180 # For example: POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(os_icon context_joined)
181
182 # The right end of left prompt.
183 typeset -g POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0BC'
184 # The left end of right prompt.
185 typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\uE0BA'
186 # The left end of left prompt.
187 typeset -g POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\uE0B2'
188 # The right end of right prompt.
189 typeset -g POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0B0'
190 # Left prompt terminator for lines without any segments.
191 typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
192
193 #################################[ os_icon: os identifier ]##################################
194 # OS identifier color.
195 typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=232
196 typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=7
197 # Custom icon.
198 # typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐'
199
200 ################################[ prompt_char: prompt symbol ]################################
201 # Transparent background.
202 typeset -g POWERLEVEL9K_PROMPT_CHAR_BACKGROUND=
203 # Green prompt symbol if the last command succeeded.
204 typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=76
205 # Red prompt symbol if the last command failed.
206 typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=196
207 # Default prompt symbol.
208 typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯'
209 # Prompt symbol in command vi mode.
210 typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮'
211 # Prompt symbol in visual vi mode.
212 typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='V'
213 # Prompt symbol in overwrite vi mode.
214 typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_CONTENT_EXPANSION='▶'
215 typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true
216 # No line terminator if prompt_char is the last segment.
217 typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
218 # No line introducer if prompt_char is the first segment.
219 typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=
220 # No surrounding whitespace.
221 typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_{LEFT,RIGHT}_WHITESPACE=
222
223 ##################################[ dir: current directory ]##################################
224 # Current directory background color.
225 typeset -g POWERLEVEL9K_DIR_BACKGROUND=4
226 # Default current directory foreground color.
227 typeset -g POWERLEVEL9K_DIR_FOREGROUND=254
228 # If directory is too long, shorten some of its segments to the shortest possible unique
229 # prefix. The shortened directory can be tab-completed to the original.
230 typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
231 # Replace removed segment suffixes with this symbol.
232 typeset -g POWERLEVEL9K_SHORTEN_DELIMITER=
233 # Color of the shortened directory segments.
234 typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=250
235 # Color of the anchor directory segments. Anchor segments are never shortened. The first
236 # segment is always an anchor.
237 typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=255
238 # Display anchor directory segments in bold.
239 typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true
240 # Don't shorten directories that contain any of these files. They are anchors.
241 local anchor_files=(
242 .bzr
243 .citc
244 .git
245 .hg
246 .node-version
247 .python-version
248 .go-version
249 .ruby-version
250 .lua-version
251 .java-version
252 .perl-version
253 .php-version
254 .tool-versions
255 .mise.toml
256 .shorten_folder_marker
257 .svn
258 .terraform
259 CVS
260 Cargo.toml
261 composer.json
262 go.mod
263 package.json
264 stack.yaml
265 )
266 typeset -g POWERLEVEL9K_SHORTEN_FOLDER_MARKER="(${(j:|:)anchor_files})"
267 # If set to "first" ("last"), remove everything before the first (last) subdirectory that contains
268 # files matching $POWERLEVEL9K_SHORTEN_FOLDER_MARKER. For example, when the current directory is
269 # /foo/bar/git_repo/nested_git_repo/baz, prompt will display git_repo/nested_git_repo/baz (first)
270 # or nested_git_repo/baz (last). This assumes that git_repo and nested_git_repo contain markers
271 # and other directories don't.
272 #
273 # Optionally, "first" and "last" can be followed by ":<offset>" where <offset> is an integer.
274 # This moves the truncation point to the right (positive offset) or to the left (negative offset)
275 # relative to the marker. Plain "first" and "last" are equivalent to "first:0" and "last:0"
276 # respectively.
277 typeset -g POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER=false
278 # Don't shorten this many last directory segments. They are anchors.
279 typeset -g POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
280 # Shorten directory if it's longer than this even if there is space for it. The value can
281 # be either absolute (e.g., '80') or a percentage of terminal width (e.g, '50%'). If empty,
282 # directory will be shortened only when prompt doesn't fit or when other parameters demand it
283 # (see POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS and POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT below).
284 # If set to `0`, directory will always be shortened to its minimum length.
285 typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=80
286 # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least this
287 # many columns for typing commands.
288 typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS=40
289 # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least
290 # COLUMNS * POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT * 0.01 columns for typing commands.
291 typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT=50
292 # If set to true, embed a hyperlink into the directory. Useful for quickly
293 # opening a directory in the file manager simply by clicking the link.
294 # Can also be handy when the directory is shortened, as it allows you to see
295 # the full directory that was used in previous commands.
296 typeset -g POWERLEVEL9K_DIR_HYPERLINK=false
297
298 # Enable special styling for non-writable and non-existent directories. See POWERLEVEL9K_LOCK_ICON
299 # and POWERLEVEL9K_DIR_CLASSES below.
300 typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=v3
301
302 # The default icon shown next to non-writable and non-existent directories when
303 # POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3.
304 # typeset -g POWERLEVEL9K_LOCK_ICON='⭐'
305
306 # POWERLEVEL9K_DIR_CLASSES allows you to specify custom icons and colors for different
307 # directories. It must be an array with 3 * N elements. Each triplet consists of:
308 #
309 # 1. A pattern against which the current directory ($PWD) is matched. Matching is done with
310 # extended_glob option enabled.
311 # 2. Directory class for the purpose of styling.
312 # 3. An empty string.
313 #
314 # Triplets are tried in order. The first triplet whose pattern matches $PWD wins.
315 #
316 # If POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3, non-writable and non-existent directories
317 # acquire class suffix _NOT_WRITABLE and NON_EXISTENT respectively.
318 #
319 # For example, given these settings:
320 #
321 # typeset -g POWERLEVEL9K_DIR_CLASSES=(
322 # '~/work(|/*)' WORK ''
323 # '~(|/*)' HOME ''
324 # '*' DEFAULT '')
325 #
326 # Whenever the current directory is ~/work or a subdirectory of ~/work, it gets styled with one
327 # of the following classes depending on its writability and existence: WORK, WORK_NOT_WRITABLE or
328 # WORK_NON_EXISTENT.
329 #
330 # Simply assigning classes to directories doesn't have any visible effects. It merely gives you an
331 # option to define custom colors and icons for different directory classes.
332 #
333 # # Styling for WORK.
334 # typeset -g POWERLEVEL9K_DIR_WORK_VISUAL_IDENTIFIER_EXPANSION='⭐'
335 # typeset -g POWERLEVEL9K_DIR_WORK_BACKGROUND=4
336 # typeset -g POWERLEVEL9K_DIR_WORK_FOREGROUND=254
337 # typeset -g POWERLEVEL9K_DIR_WORK_SHORTENED_FOREGROUND=250
338 # typeset -g POWERLEVEL9K_DIR_WORK_ANCHOR_FOREGROUND=255
339 #
340 # # Styling for WORK_NOT_WRITABLE.
341 # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
342 # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_BACKGROUND=4
343 # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND=254
344 # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_SHORTENED_FOREGROUND=250
345 # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_ANCHOR_FOREGROUND=255
346 #
347 # # Styling for WORK_NON_EXISTENT.
348 # typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_VISUAL_IDENTIFIER_EXPANSION='⭐'
349 # typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_BACKGROUND=4
350 # typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_FOREGROUND=254
351 # typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_SHORTENED_FOREGROUND=250
352 # typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_ANCHOR_FOREGROUND=255
353 #
354 # If a styling parameter isn't explicitly defined for some class, it falls back to the classless
355 # parameter. For example, if POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND is not set, it falls
356 # back to POWERLEVEL9K_DIR_FOREGROUND.
357 #
358 # typeset -g POWERLEVEL9K_DIR_CLASSES=()
359
360 # Custom prefix.
361 # typeset -g POWERLEVEL9K_DIR_PREFIX='in '
362
363 #####################################[ vcs: git status ]######################################
364 # Version control background colors.
365 typeset -g POWERLEVEL9K_VCS_CLEAN_BACKGROUND=2
366 typeset -g POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=3
367 typeset -g POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND=2
368 typeset -g POWERLEVEL9K_VCS_CONFLICTED_BACKGROUND=3
369 typeset -g POWERLEVEL9K_VCS_LOADING_BACKGROUND=8
370
371 # Branch icon. Set this parameter to '\UE0A0 ' for the popular Powerline branch icon.
372 typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='\uF126 '
373
374 # Untracked files icon. It's really a question mark, your font isn't broken.
375 # Change the value of this parameter to show a different icon.
376 typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON='?'
377
378 # Formatter for Git status.
379 #
380 # Example output: master wip ⇣42⇡42 *42 merge ~42 +42 !42 ?42.
381 #
382 # You can edit the function to customize how Git status looks.
383 #
384 # VCS_STATUS_* parameters are set by gitstatus plugin. See reference:
385 # https://github.com/romkatv/gitstatus/blob/master/gitstatus.plugin.zsh.
386 function my_git_formatter() {
387 emulate -L zsh
388
389 if [[ -n $P9K_CONTENT ]]; then
390 # If P9K_CONTENT is not empty, use it. It's either "loading" or from vcs_info (not from
391 # gitstatus plugin). VCS_STATUS_* parameters are not available in this case.
392 typeset -g my_git_format=$P9K_CONTENT
393 return
394 fi
395
396 # Styling for different parts of Git status.
397 local meta='%7F' # white foreground
398 local clean='%0F' # black foreground
399 local modified='%0F' # black foreground
400 local untracked='%0F' # black foreground
401 local conflicted='%1F' # red foreground
402
403 local res
404
405 if [[ -n $VCS_STATUS_LOCAL_BRANCH ]]; then
406 local branch=${(V)VCS_STATUS_LOCAL_BRANCH}
407 # If local branch name is at most 32 characters long, show it in full.
408 # Otherwise show the first 12 … the last 12.
409 # Tip: To always show local branch name in full without truncation, delete the next line.
410 (( $#branch > 32 )) && branch[13,-13]="…" # <-- this line
411 res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}${branch//\%/%%}"
412 fi
413
414 if [[ -n $VCS_STATUS_TAG
415 # Show tag only if not on a branch.
416 # Tip: To always show tag, delete the next line.
417 && -z $VCS_STATUS_LOCAL_BRANCH # <-- this line
418 ]]; then
419 local tag=${(V)VCS_STATUS_TAG}
420 # If tag name is at most 32 characters long, show it in full.
421 # Otherwise show the first 12 … the last 12.
422 # Tip: To always show tag name in full without truncation, delete the next line.
423 (( $#tag > 32 )) && tag[13,-13]="…" # <-- this line
424 res+="${meta}#${clean}${tag//\%/%%}"
425 fi
426
427 # Display the current Git commit if there is no branch and no tag.
428 # Tip: To always display the current Git commit, delete the next line.
429 [[ -z $VCS_STATUS_LOCAL_BRANCH && -z $VCS_STATUS_TAG ]] && # <-- this line
430 res+="${meta}@${clean}${VCS_STATUS_COMMIT[1,8]}"
431
432 # Show tracking branch name if it differs from local branch.
433 if [[ -n ${VCS_STATUS_REMOTE_BRANCH:#$VCS_STATUS_LOCAL_BRANCH} ]]; then
434 res+="${meta}:${clean}${(V)VCS_STATUS_REMOTE_BRANCH//\%/%%}"
435 fi
436
437 # Display "wip" if the latest commit's summary contains "wip" or "WIP".
438 if [[ $VCS_STATUS_COMMIT_SUMMARY == (|*[^[:alnum:]])(wip|WIP)(|[^[:alnum:]]*) ]]; then
439 res+=" ${modified}wip"
440 fi
441
442 if (( VCS_STATUS_COMMITS_AHEAD || VCS_STATUS_COMMITS_BEHIND )); then
443 # ⇣42 if behind the remote.
444 (( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}⇣${VCS_STATUS_COMMITS_BEHIND}"
445 # ⇡42 if ahead of the remote; no leading space if also behind the remote: ⇣42⇡42.
446 (( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" "
447 (( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}⇡${VCS_STATUS_COMMITS_AHEAD}"
448 elif [[ -n $VCS_STATUS_REMOTE_BRANCH ]]; then
449 # Tip: Uncomment the next line to display '=' if up to date with the remote.
450 # res+=" ${clean}="
451 fi
452
453 # ⇠42 if behind the push remote.
454 (( VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" ${clean}⇠${VCS_STATUS_PUSH_COMMITS_BEHIND}"
455 (( VCS_STATUS_PUSH_COMMITS_AHEAD && !VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" "
456 # ⇢42 if ahead of the push remote; no leading space if also behind: ⇠42⇢42.
457 (( VCS_STATUS_PUSH_COMMITS_AHEAD )) && res+="${clean}⇢${VCS_STATUS_PUSH_COMMITS_AHEAD}"
458 # *42 if have stashes.
459 (( VCS_STATUS_STASHES )) && res+=" ${clean}*${VCS_STATUS_STASHES}"
460 # 'merge' if the repo is in an unusual state.
461 [[ -n $VCS_STATUS_ACTION ]] && res+=" ${conflicted}${VCS_STATUS_ACTION}"
462 # ~42 if have merge conflicts.
463 (( VCS_STATUS_NUM_CONFLICTED )) && res+=" ${conflicted}~${VCS_STATUS_NUM_CONFLICTED}"
464 # +42 if have staged changes.
465 (( VCS_STATUS_NUM_STAGED )) && res+=" ${modified}+${VCS_STATUS_NUM_STAGED}"
466 # !42 if have unstaged changes.
467 (( VCS_STATUS_NUM_UNSTAGED )) && res+=" ${modified}!${VCS_STATUS_NUM_UNSTAGED}"
468 # ?42 if have untracked files. It's really a question mark, your font isn't broken.
469 # See POWERLEVEL9K_VCS_UNTRACKED_ICON above if you want to use a different icon.
470 # Remove the next line if you don't want to see untracked files at all.
471 (( VCS_STATUS_NUM_UNTRACKED )) && res+=" ${untracked}${(g::)POWERLEVEL9K_VCS_UNTRACKED_ICON}${VCS_STATUS_NUM_UNTRACKED}"
472 # "─" if the number of unstaged files is unknown. This can happen due to
473 # POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY (see below) being set to a non-negative number lower
474 # than the number of files in the Git index, or due to bash.showDirtyState being set to false
475 # in the repository config. The number of staged and untracked files may also be unknown
476 # in this case.
477 (( VCS_STATUS_HAS_UNSTAGED == -1 )) && res+=" ${modified}─"
478
479 typeset -g my_git_format=$res
480 }
481 functions -M my_git_formatter 2>/dev/null
482
483 # Don't count the number of unstaged, untracked and conflicted files in Git repositories with
484 # more than this many files in the index. Negative value means infinity.
485 #
486 # If you are working in Git repositories with tens of millions of files and seeing performance
487 # sagging, try setting POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY to a number lower than the output
488 # of `git ls-files | wc -l`. Alternatively, add `bash.showDirtyState = false` to the repository's
489 # config: `git config bash.showDirtyState false`.
490 typeset -g POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY=-1
491
492 # Don't show Git status in prompt for repositories whose workdir matches this pattern.
493 # For example, if set to '~', the Git repository at $HOME/.git will be ignored.
494 # Multiple patterns can be combined with '|': '~(|/foo)|/bar/baz/*'.
495 typeset -g POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~'
496
497 # Disable the default Git status formatting.
498 typeset -g POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true
499 # Install our own Git status formatter.
500 typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${$((my_git_formatter()))+${my_git_format}}'
501 # Enable counters for staged, unstaged, etc.
502 typeset -g POWERLEVEL9K_VCS_{STAGED,UNSTAGED,UNTRACKED,CONFLICTED,COMMITS_AHEAD,COMMITS_BEHIND}_MAX_NUM=-1
503
504 # Custom icon.
505 # typeset -g POWERLEVEL9K_VCS_VISUAL_IDENTIFIER_EXPANSION='⭐'
506 # Custom prefix.
507 # typeset -g POWERLEVEL9K_VCS_PREFIX='on '
508
509 # Show status of repositories of these types. You can add svn and/or hg if you are
510 # using them. If you do, your prompt may become slow even when your current directory
511 # isn't in an svn or hg repository.
512 typeset -g POWERLEVEL9K_VCS_BACKENDS=(git)
513
514 ##########################[ status: exit code of the last command ]###########################
515 # Enable OK_PIPE, ERROR_PIPE and ERROR_SIGNAL status states to allow us to enable, disable and
516 # style them independently from the regular OK and ERROR state.
517 typeset -g POWERLEVEL9K_STATUS_EXTENDED_STATES=true
518
519 # Status on success. No content, just an icon. No need to show it if prompt_char is enabled as
520 # it will signify success by turning green.
521 typeset -g POWERLEVEL9K_STATUS_OK=true
522 typeset -g POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION='✔'
523 typeset -g POWERLEVEL9K_STATUS_OK_FOREGROUND=2
524 typeset -g POWERLEVEL9K_STATUS_OK_BACKGROUND=0
525
526 # Status when some part of a pipe command fails but the overall exit status is zero. It may look
527 # like this: 1|0.
528 typeset -g POWERLEVEL9K_STATUS_OK_PIPE=true
529 typeset -g POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION='✔'
530 typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=2
531 typeset -g POWERLEVEL9K_STATUS_OK_PIPE_BACKGROUND=0
532
533 # Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as
534 # it will signify error by turning red.
535 typeset -g POWERLEVEL9K_STATUS_ERROR=true
536 typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='✘'
537 typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=3
538 typeset -g POWERLEVEL9K_STATUS_ERROR_BACKGROUND=1
539
540 # Status when the last command was terminated by a signal.
541 typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true
542 # Use terse signal names: "INT" instead of "SIGINT(2)".
543 typeset -g POWERLEVEL9K_STATUS_VERBOSE_SIGNAME=false
544 typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION='✘'
545 typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=3
546 typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_BACKGROUND=1
547
548 # Status when some part of a pipe command fails and the overall exit status is also non-zero.
549 # It may look like this: 1|0.
550 typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE=true
551 typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION='✘'
552 typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=3
553 typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_BACKGROUND=1
554
555 ###################[ command_execution_time: duration of the last command ]###################
556 # Execution time color.
557 typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=0
558 typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=3
559 # Show duration of the last command if takes at least this many seconds.
560 typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3
561 # Show this many fractional digits. Zero means round to seconds.
562 typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0
563 # Duration format: 1d 2h 3m 4s.
564 typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s'
565 # Custom icon.
566 # typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐'
567 # Custom prefix.
568 # typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PREFIX='took '
569
570 #######################[ background_jobs: presence of background jobs ]#######################
571 # Background jobs color.
572 typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=6
573 typeset -g POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND=0
574 # Don't show the number of background jobs.
575 typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false
576 # Custom icon.
577 # typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='⭐'
578
579 #######################[ direnv: direnv status (https://direnv.net/) ]########################
580 # Direnv color.
581 typeset -g POWERLEVEL9K_DIRENV_FOREGROUND=3
582 typeset -g POWERLEVEL9K_DIRENV_BACKGROUND=0
583 # Custom icon.
584 # typeset -g POWERLEVEL9K_DIRENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
585
586 ###############[ asdf: asdf version manager (https://github.com/asdf-vm/asdf) ]###############
587 # Default asdf color. Only used to display tools for which there is no color override (see below).
588 # Tip: Override these parameters for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_FOREGROUND and
589 # POWERLEVEL9K_ASDF_${TOOL}_BACKGROUND.
590 typeset -g POWERLEVEL9K_ASDF_FOREGROUND=0
591 typeset -g POWERLEVEL9K_ASDF_BACKGROUND=7
592
593 # There are four parameters that can be used to hide asdf tools. Each parameter describes
594 # conditions under which a tool gets hidden. Parameters can hide tools but not unhide them. If at
595 # least one parameter decides to hide a tool, that tool gets hidden. If no parameter decides to
596 # hide a tool, it gets shown.
597 #
598 # Special note on the difference between POWERLEVEL9K_ASDF_SOURCES and
599 # POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW. Consider the effect of the following commands:
600 #
601 # asdf local python 3.8.1
602 # asdf global python 3.8.1
603 #
604 # After running both commands the current python version is 3.8.1 and its source is "local" as
605 # it takes precedence over "global". If POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW is set to false,
606 # it'll hide python version in this case because 3.8.1 is the same as the global version.
607 # POWERLEVEL9K_ASDF_SOURCES will hide python version only if the value of this parameter doesn't
608 # contain "local".
609
610 # Hide tool versions that don't come from one of these sources.
611 #
612 # Available sources:
613 #
614 # - shell `asdf current` says "set by ASDF_${TOOL}_VERSION environment variable"
615 # - local `asdf current` says "set by /some/not/home/directory/file"
616 # - global `asdf current` says "set by /home/username/file"
617 #
618 # Note: If this parameter is set to (shell local global), it won't hide tools.
619 # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SOURCES.
620 typeset -g POWERLEVEL9K_ASDF_SOURCES=(shell local global)
621
622 # If set to false, hide tool versions that are the same as global.
623 #
624 # Note: The name of this parameter doesn't reflect its meaning at all.
625 # Note: If this parameter is set to true, it won't hide tools.
626 # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_PROMPT_ALWAYS_SHOW.
627 typeset -g POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW=false
628
629 # If set to false, hide tool versions that are equal to "system".
630 #
631 # Note: If this parameter is set to true, it won't hide tools.
632 # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_SYSTEM.
633 typeset -g POWERLEVEL9K_ASDF_SHOW_SYSTEM=true
634
635 # If set to non-empty value, hide tools unless there is a file matching the specified file pattern
636 # in the current directory, or its parent directory, or its grandparent directory, and so on.
637 #
638 # Note: If this parameter is set to empty value, it won't hide tools.
639 # Note: SHOW_ON_UPGLOB isn't specific to asdf. It works with all prompt segments.
640 # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_ON_UPGLOB.
641 #
642 # Example: Hide nodejs version when there is no package.json and no *.js files in the current
643 # directory, in `..`, in `../..` and so on.
644 #
645 # typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.js|package.json'
646 typeset -g POWERLEVEL9K_ASDF_SHOW_ON_UPGLOB=
647
648 # Ruby version from asdf.
649 typeset -g POWERLEVEL9K_ASDF_RUBY_FOREGROUND=0
650 typeset -g POWERLEVEL9K_ASDF_RUBY_BACKGROUND=1
651 # typeset -g POWERLEVEL9K_ASDF_RUBY_VISUAL_IDENTIFIER_EXPANSION='⭐'
652 # typeset -g POWERLEVEL9K_ASDF_RUBY_SHOW_ON_UPGLOB='*.foo|*.bar'
653
654 # Python version from asdf.
655 typeset -g POWERLEVEL9K_ASDF_PYTHON_FOREGROUND=0
656 typeset -g POWERLEVEL9K_ASDF_PYTHON_BACKGROUND=4
657 # typeset -g POWERLEVEL9K_ASDF_PYTHON_VISUAL_IDENTIFIER_EXPANSION='⭐'
658 # typeset -g POWERLEVEL9K_ASDF_PYTHON_SHOW_ON_UPGLOB='*.foo|*.bar'
659
660 # Go version from asdf.
661 typeset -g POWERLEVEL9K_ASDF_GOLANG_FOREGROUND=0
662 typeset -g POWERLEVEL9K_ASDF_GOLANG_BACKGROUND=4
663 # typeset -g POWERLEVEL9K_ASDF_GOLANG_VISUAL_IDENTIFIER_EXPANSION='⭐'
664 # typeset -g POWERLEVEL9K_ASDF_GOLANG_SHOW_ON_UPGLOB='*.foo|*.bar'
665
666 # Node.js version from asdf.
667 typeset -g POWERLEVEL9K_ASDF_NODEJS_FOREGROUND=0
668 typeset -g POWERLEVEL9K_ASDF_NODEJS_BACKGROUND=2
669 # typeset -g POWERLEVEL9K_ASDF_NODEJS_VISUAL_IDENTIFIER_EXPANSION='⭐'
670 # typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.foo|*.bar'
671
672 # Rust version from asdf.
673 typeset -g POWERLEVEL9K_ASDF_RUST_FOREGROUND=0
674 typeset -g POWERLEVEL9K_ASDF_RUST_BACKGROUND=208
675 # typeset -g POWERLEVEL9K_ASDF_RUST_VISUAL_IDENTIFIER_EXPANSION='⭐'
676 # typeset -g POWERLEVEL9K_ASDF_RUST_SHOW_ON_UPGLOB='*.foo|*.bar'
677
678 # .NET Core version from asdf.
679 typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_FOREGROUND=0
680 typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_BACKGROUND=5
681 # typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_VISUAL_IDENTIFIER_EXPANSION='⭐'
682 # typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_SHOW_ON_UPGLOB='*.foo|*.bar'
683
684 # Flutter version from asdf.
685 typeset -g POWERLEVEL9K_ASDF_FLUTTER_FOREGROUND=0
686 typeset -g POWERLEVEL9K_ASDF_FLUTTER_BACKGROUND=4
687 # typeset -g POWERLEVEL9K_ASDF_FLUTTER_VISUAL_IDENTIFIER_EXPANSION='⭐'
688 # typeset -g POWERLEVEL9K_ASDF_FLUTTER_SHOW_ON_UPGLOB='*.foo|*.bar'
689
690 # Lua version from asdf.
691 typeset -g POWERLEVEL9K_ASDF_LUA_FOREGROUND=0
692 typeset -g POWERLEVEL9K_ASDF_LUA_BACKGROUND=4
693 # typeset -g POWERLEVEL9K_ASDF_LUA_VISUAL_IDENTIFIER_EXPANSION='⭐'
694 # typeset -g POWERLEVEL9K_ASDF_LUA_SHOW_ON_UPGLOB='*.foo|*.bar'
695
696 # Java version from asdf.
697 typeset -g POWERLEVEL9K_ASDF_JAVA_FOREGROUND=1
698 typeset -g POWERLEVEL9K_ASDF_JAVA_BACKGROUND=7
699 # typeset -g POWERLEVEL9K_ASDF_JAVA_VISUAL_IDENTIFIER_EXPANSION='⭐'
700 # typeset -g POWERLEVEL9K_ASDF_JAVA_SHOW_ON_UPGLOB='*.foo|*.bar'
701
702 # Perl version from asdf.
703 typeset -g POWERLEVEL9K_ASDF_PERL_FOREGROUND=0
704 typeset -g POWERLEVEL9K_ASDF_PERL_BACKGROUND=4
705 # typeset -g POWERLEVEL9K_ASDF_PERL_VISUAL_IDENTIFIER_EXPANSION='⭐'
706 # typeset -g POWERLEVEL9K_ASDF_PERL_SHOW_ON_UPGLOB='*.foo|*.bar'
707
708 # Erlang version from asdf.
709 typeset -g POWERLEVEL9K_ASDF_ERLANG_FOREGROUND=0
710 typeset -g POWERLEVEL9K_ASDF_ERLANG_BACKGROUND=1
711 # typeset -g POWERLEVEL9K_ASDF_ERLANG_VISUAL_IDENTIFIER_EXPANSION='⭐'
712 # typeset -g POWERLEVEL9K_ASDF_ERLANG_SHOW_ON_UPGLOB='*.foo|*.bar'
713
714 # Elixir version from asdf.
715 typeset -g POWERLEVEL9K_ASDF_ELIXIR_FOREGROUND=0
716 typeset -g POWERLEVEL9K_ASDF_ELIXIR_BACKGROUND=5
717 # typeset -g POWERLEVEL9K_ASDF_ELIXIR_VISUAL_IDENTIFIER_EXPANSION='⭐'
718 # typeset -g POWERLEVEL9K_ASDF_ELIXIR_SHOW_ON_UPGLOB='*.foo|*.bar'
719
720 # Postgres version from asdf.
721 typeset -g POWERLEVEL9K_ASDF_POSTGRES_FOREGROUND=0
722 typeset -g POWERLEVEL9K_ASDF_POSTGRES_BACKGROUND=6
723 # typeset -g POWERLEVEL9K_ASDF_POSTGRES_VISUAL_IDENTIFIER_EXPANSION='⭐'
724 # typeset -g POWERLEVEL9K_ASDF_POSTGRES_SHOW_ON_UPGLOB='*.foo|*.bar'
725
726 # PHP version from asdf.
727 typeset -g POWERLEVEL9K_ASDF_PHP_FOREGROUND=0
728 typeset -g POWERLEVEL9K_ASDF_PHP_BACKGROUND=5
729 # typeset -g POWERLEVEL9K_ASDF_PHP_VISUAL_IDENTIFIER_EXPANSION='⭐'
730 # typeset -g POWERLEVEL9K_ASDF_PHP_SHOW_ON_UPGLOB='*.foo|*.bar'
731
732 # Haskell version from asdf.
733 typeset -g POWERLEVEL9K_ASDF_HASKELL_FOREGROUND=0
734 typeset -g POWERLEVEL9K_ASDF_HASKELL_BACKGROUND=3
735 # typeset -g POWERLEVEL9K_ASDF_HASKELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
736 # typeset -g POWERLEVEL9K_ASDF_HASKELL_SHOW_ON_UPGLOB='*.foo|*.bar'
737
738 # Julia version from asdf.
739 typeset -g POWERLEVEL9K_ASDF_JULIA_FOREGROUND=0
740 typeset -g POWERLEVEL9K_ASDF_JULIA_BACKGROUND=2
741 # typeset -g POWERLEVEL9K_ASDF_JULIA_VISUAL_IDENTIFIER_EXPANSION='⭐'
742 # typeset -g POWERLEVEL9K_ASDF_JULIA_SHOW_ON_UPGLOB='*.foo|*.bar'
743
744 ##########[ nordvpn: nordvpn connection status, linux only (https://nordvpn.com/) ]###########
745 # NordVPN connection indicator color.
746 typeset -g POWERLEVEL9K_NORDVPN_FOREGROUND=7
747 typeset -g POWERLEVEL9K_NORDVPN_BACKGROUND=4
748 # Hide NordVPN connection indicator when not connected.
749 typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_CONTENT_EXPANSION=
750 typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_VISUAL_IDENTIFIER_EXPANSION=
751 # Custom icon.
752 # typeset -g POWERLEVEL9K_NORDVPN_VISUAL_IDENTIFIER_EXPANSION='⭐'
753
754 #################[ ranger: ranger shell (https://github.com/ranger/ranger) ]##################
755 # Ranger shell color.
756 typeset -g POWERLEVEL9K_RANGER_FOREGROUND=3
757 typeset -g POWERLEVEL9K_RANGER_BACKGROUND=0
758 # Custom icon.
759 # typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐'
760
761 ####################[ yazi: yazi shell (https://github.com/sxyazi/yazi) ]#####################
762 # Yazi shell color.
763 typeset -g POWERLEVEL9K_YAZI_FOREGROUND=3
764 typeset -g POWERLEVEL9K_YAZI_BACKGROUND=0
765 # Custom icon.
766 # typeset -g POWERLEVEL9K_YAZI_VISUAL_IDENTIFIER_EXPANSION='⭐'
767
768 ######################[ nnn: nnn shell (https://github.com/jarun/nnn) ]#######################
769 # Nnn shell color.
770 typeset -g POWERLEVEL9K_NNN_FOREGROUND=0
771 typeset -g POWERLEVEL9K_NNN_BACKGROUND=6
772 # Custom icon.
773 # typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐'
774
775 ######################[ lf: lf shell (https://github.com/gokcehan/lf) ]#######################
776 # lf shell color.
777 typeset -g POWERLEVEL9K_LF_FOREGROUND=0
778 typeset -g POWERLEVEL9K_LF_BACKGROUND=6
779 # Custom icon.
780 # typeset -g POWERLEVEL9K_LF_VISUAL_IDENTIFIER_EXPANSION='⭐'
781
782 ##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]##################
783 # xplr shell color.
784 typeset -g POWERLEVEL9K_XPLR_FOREGROUND=0
785 typeset -g POWERLEVEL9K_XPLR_BACKGROUND=6
786 # Custom icon.
787 # typeset -g POWERLEVEL9K_XPLR_VISUAL_IDENTIFIER_EXPANSION='⭐'
788
789 ###########################[ vim_shell: vim shell indicator (:sh) ]###########################
790 # Vim shell indicator color.
791 typeset -g POWERLEVEL9K_VIM_SHELL_FOREGROUND=0
792 typeset -g POWERLEVEL9K_VIM_SHELL_BACKGROUND=2
793 # Custom icon.
794 # typeset -g POWERLEVEL9K_VIM_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
795
796 ######[ midnight_commander: midnight commander shell (https://midnight-commander.org/) ]######
797 # Midnight Commander shell color.
798 typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_FOREGROUND=3
799 typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_BACKGROUND=0
800 # Custom icon.
801 # typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_VISUAL_IDENTIFIER_EXPANSION='⭐'
802
803 #[ nix_shell: nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) ]##
804 # Nix shell color.
805 typeset -g POWERLEVEL9K_NIX_SHELL_FOREGROUND=0
806 typeset -g POWERLEVEL9K_NIX_SHELL_BACKGROUND=4
807
808 # Display the icon of nix_shell if PATH contains a subdirectory of /nix/store.
809 # typeset -g POWERLEVEL9K_NIX_SHELL_INFER_FROM_PATH=false
810
811 # Tip: If you want to see just the icon without "pure" and "impure", uncomment the next line.
812 # typeset -g POWERLEVEL9K_NIX_SHELL_CONTENT_EXPANSION=
813
814 # Custom icon.
815 # typeset -g POWERLEVEL9K_NIX_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
816
817 ##################[ chezmoi_shell: chezmoi shell (https://www.chezmoi.io/) ]##################
818 # chezmoi shell color.
819 typeset -g POWERLEVEL9K_CHEZMOI_SHELL_FOREGROUND=0
820 typeset -g POWERLEVEL9K_CHEZMOI_SHELL_BACKGROUND=4
821 # Custom icon.
822 # typeset -g POWERLEVEL9K_CHEZMOI_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
823
824 ##################################[ disk_usage: disk usage ]##################################
825 # Colors for different levels of disk usage.
826 typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_FOREGROUND=3
827 typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_BACKGROUND=0
828 typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_FOREGROUND=0
829 typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_BACKGROUND=3
830 typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_FOREGROUND=7
831 typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_BACKGROUND=1
832 # Thresholds for different levels of disk usage (percentage points).
833 typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL=90
834 typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_LEVEL=95
835 # If set to true, hide disk usage when below $POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL percent.
836 typeset -g POWERLEVEL9K_DISK_USAGE_ONLY_WARNING=false
837 # Custom icon.
838 # typeset -g POWERLEVEL9K_DISK_USAGE_VISUAL_IDENTIFIER_EXPANSION='⭐'
839
840 ###########[ vi_mode: vi mode (you don't need this if you've enabled prompt_char) ]###########
841 # Foreground color.
842 typeset -g POWERLEVEL9K_VI_MODE_FOREGROUND=0
843 # Text and color for normal (a.k.a. command) vi mode.
844 typeset -g POWERLEVEL9K_VI_COMMAND_MODE_STRING=NORMAL
845 typeset -g POWERLEVEL9K_VI_MODE_NORMAL_BACKGROUND=2
846 # Text and color for visual vi mode.
847 typeset -g POWERLEVEL9K_VI_VISUAL_MODE_STRING=VISUAL
848 typeset -g POWERLEVEL9K_VI_MODE_VISUAL_BACKGROUND=4
849 # Text and color for overtype (a.k.a. overwrite and replace) vi mode.
850 typeset -g POWERLEVEL9K_VI_OVERWRITE_MODE_STRING=OVERTYPE
851 typeset -g POWERLEVEL9K_VI_MODE_OVERWRITE_BACKGROUND=3
852 # Text and color for insert vi mode.
853 typeset -g POWERLEVEL9K_VI_INSERT_MODE_STRING=
854 typeset -g POWERLEVEL9K_VI_MODE_INSERT_FOREGROUND=8
855 # Custom icon.
856 # typeset -g POWERLEVEL9K_VI_MODE_VISUAL_IDENTIFIER_EXPANSION='⭐'
857
858 ######################################[ ram: free RAM ]#######################################
859 # RAM color.
860 typeset -g POWERLEVEL9K_RAM_FOREGROUND=0
861 typeset -g POWERLEVEL9K_RAM_BACKGROUND=3
862 # Custom icon.
863 # typeset -g POWERLEVEL9K_RAM_VISUAL_IDENTIFIER_EXPANSION='⭐'
864
865 #####################################[ swap: used swap ]######################################
866 # Swap color.
867 typeset -g POWERLEVEL9K_SWAP_FOREGROUND=0
868 typeset -g POWERLEVEL9K_SWAP_BACKGROUND=3
869 # Custom icon.
870 # typeset -g POWERLEVEL9K_SWAP_VISUAL_IDENTIFIER_EXPANSION='⭐'
871
872 ######################################[ load: CPU load ]######################################
873 # Show average CPU load over this many last minutes. Valid values are 1, 5 and 15.
874 typeset -g POWERLEVEL9K_LOAD_WHICH=5
875 # Load color when load is under 50%.
876 typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=0
877 typeset -g POWERLEVEL9K_LOAD_NORMAL_BACKGROUND=2
878 # Load color when load is between 50% and 70%.
879 typeset -g POWERLEVEL9K_LOAD_WARNING_FOREGROUND=0
880 typeset -g POWERLEVEL9K_LOAD_WARNING_BACKGROUND=3
881 # Load color when load is over 70%.
882 typeset -g POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND=0
883 typeset -g POWERLEVEL9K_LOAD_CRITICAL_BACKGROUND=1
884 # Custom icon.
885 # typeset -g POWERLEVEL9K_LOAD_VISUAL_IDENTIFIER_EXPANSION='⭐'
886
887 ################[ todo: todo items (https://github.com/todotxt/todo.txt-cli) ]################
888 # Todo color.
889 typeset -g POWERLEVEL9K_TODO_FOREGROUND=0
890 typeset -g POWERLEVEL9K_TODO_BACKGROUND=8
891 # Hide todo when the total number of tasks is zero.
892 typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_TOTAL=true
893 # Hide todo when the number of tasks after filtering is zero.
894 typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_FILTERED=false
895
896 # Todo format. The following parameters are available within the expansion.
897 #
898 # - P9K_TODO_TOTAL_TASK_COUNT The total number of tasks.
899 # - P9K_TODO_FILTERED_TASK_COUNT The number of tasks after filtering.
900 #
901 # These variables correspond to the last line of the output of `todo.sh -p ls`:
902 #
903 # TODO: 24 of 42 tasks shown
904 #
905 # Here 24 is P9K_TODO_FILTERED_TASK_COUNT and 42 is P9K_TODO_TOTAL_TASK_COUNT.
906 #
907 # typeset -g POWERLEVEL9K_TODO_CONTENT_EXPANSION='$P9K_TODO_FILTERED_TASK_COUNT'
908
909 # Custom icon.
910 # typeset -g POWERLEVEL9K_TODO_VISUAL_IDENTIFIER_EXPANSION='⭐'
911
912 ###########[ timewarrior: timewarrior tracking status (https://timewarrior.net/) ]############
913 # Timewarrior color.
914 typeset -g POWERLEVEL9K_TIMEWARRIOR_FOREGROUND=255
915 typeset -g POWERLEVEL9K_TIMEWARRIOR_BACKGROUND=8
916
917 # If the tracked task is longer than 24 characters, truncate and append "…".
918 # Tip: To always display tasks without truncation, delete the following parameter.
919 # Tip: To hide task names and display just the icon when time tracking is enabled, set the
920 # value of the following parameter to "".
921 typeset -g POWERLEVEL9K_TIMEWARRIOR_CONTENT_EXPANSION='${P9K_CONTENT:0:24}${${P9K_CONTENT:24}:+…}'
922
923 # Custom icon.
924 # typeset -g POWERLEVEL9K_TIMEWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'
925
926 ##############[ taskwarrior: taskwarrior task count (https://taskwarrior.org/) ]##############
927 # Taskwarrior color.
928 typeset -g POWERLEVEL9K_TASKWARRIOR_FOREGROUND=0
929 typeset -g POWERLEVEL9K_TASKWARRIOR_BACKGROUND=6
930
931 # Taskwarrior segment format. The following parameters are available within the expansion.
932 #
933 # - P9K_TASKWARRIOR_PENDING_COUNT The number of pending tasks: `task +PENDING count`.
934 # - P9K_TASKWARRIOR_OVERDUE_COUNT The number of overdue tasks: `task +OVERDUE count`.
935 #
936 # Zero values are represented as empty parameters.
937 #
938 # The default format:
939 #
940 # '${P9K_TASKWARRIOR_OVERDUE_COUNT:+"!$P9K_TASKWARRIOR_OVERDUE_COUNT/"}$P9K_TASKWARRIOR_PENDING_COUNT'
941 #
942 # typeset -g POWERLEVEL9K_TASKWARRIOR_CONTENT_EXPANSION='$P9K_TASKWARRIOR_PENDING_COUNT'
943
944 # Custom icon.
945 # typeset -g POWERLEVEL9K_TASKWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'
946
947 ######[ per_directory_history: Oh My Zsh per-directory-history local/global indicator ]#######
948 # Color when using local/global history.
949 typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_LOCAL_FOREGROUND=0
950 typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_LOCAL_BACKGROUND=5
951 typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_GLOBAL_FOREGROUND=0
952 typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_GLOBAL_BACKGROUND=3
953
954 # Tip: Uncomment the next two lines to hide "local"/"global" text and leave just the icon.
955 # typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_LOCAL_CONTENT_EXPANSION=''
956 # typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_GLOBAL_CONTENT_EXPANSION=''
957
958 # Custom icon.
959 # typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_LOCAL_VISUAL_IDENTIFIER_EXPANSION='⭐'
960 # typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_GLOBAL_VISUAL_IDENTIFIER_EXPANSION='⭐'
961
962 ################################[ cpu_arch: CPU architecture ]################################
963 # CPU architecture color.
964 typeset -g POWERLEVEL9K_CPU_ARCH_FOREGROUND=0
965 typeset -g POWERLEVEL9K_CPU_ARCH_BACKGROUND=3
966
967 # Hide the segment when on a specific CPU architecture.
968 # typeset -g POWERLEVEL9K_CPU_ARCH_X86_64_CONTENT_EXPANSION=
969 # typeset -g POWERLEVEL9K_CPU_ARCH_X86_64_VISUAL_IDENTIFIER_EXPANSION=
970
971 # Custom icon.
972 # typeset -g POWERLEVEL9K_CPU_ARCH_VISUAL_IDENTIFIER_EXPANSION='⭐'
973
974 ##################################[ context: user@hostname ]##################################
975 # Context color when running with privileges.
976 typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=1
977 typeset -g POWERLEVEL9K_CONTEXT_ROOT_BACKGROUND=0
978 # Context color in SSH without privileges.
979 typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_FOREGROUND=3
980 typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_BACKGROUND=0
981 # Default context color (no privileges, no SSH).
982 typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=3
983 typeset -g POWERLEVEL9K_CONTEXT_BACKGROUND=0
984
985 # Context format when running with privileges: user@hostname.
986 typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%n@%m'
987 # Context format when in SSH without privileges: user@hostname.
988 typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_TEMPLATE='%n@%m'
989 # Default context format (no privileges, no SSH): user@hostname.
990 typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m'
991
992 # Don't show context unless running with privileges or in SSH.
993 # Tip: Remove the next line to always show context.
994 typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=
995
996 # Custom icon.
997 # typeset -g POWERLEVEL9K_CONTEXT_VISUAL_IDENTIFIER_EXPANSION='⭐'
998 # Custom prefix.
999 # typeset -g POWERLEVEL9K_CONTEXT_PREFIX='with '
1000
1001 ###[ virtualenv: python virtual environment (https://docs.python.org/3/library/venv.html) ]###
1002 # Python virtual environment color.
1003 typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=0
1004 typeset -g POWERLEVEL9K_VIRTUALENV_BACKGROUND=4
1005 # Don't show Python version next to the virtual environment name.
1006 typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false
1007 # If set to "false", won't show virtualenv if pyenv is already shown.
1008 # If set to "if-different", won't show virtualenv if it's the same as pyenv.
1009 typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_WITH_PYENV=false
1010 # Separate environment name from Python version only with a space.
1011 typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER=
1012 # Custom icon.
1013 # typeset -g POWERLEVEL9K_VIRTUALENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
1014
1015 #####################[ anaconda: conda environment (https://conda.io/) ]######################
1016 # Anaconda environment color.
1017 typeset -g POWERLEVEL9K_ANACONDA_FOREGROUND=0
1018 typeset -g POWERLEVEL9K_ANACONDA_BACKGROUND=4
1019
1020 # Anaconda segment format. The following parameters are available within the expansion.
1021 #
1022 # - CONDA_PREFIX Absolute path to the active Anaconda/Miniconda environment.
1023 # - CONDA_DEFAULT_ENV Name of the active Anaconda/Miniconda environment.
1024 # - CONDA_PROMPT_MODIFIER Configurable prompt modifier (see below).
1025 # - P9K_ANACONDA_PYTHON_VERSION Current python version (python --version).
1026 #
1027 # CONDA_PROMPT_MODIFIER can be configured with the following command:
1028 #
1029 # conda config --set env_prompt '({default_env}) '
1030 #
1031 # The last argument is a Python format string that can use the following variables:
1032 #
1033 # - prefix The same as CONDA_PREFIX.
1034 # - default_env The same as CONDA_DEFAULT_ENV.
1035 # - name The last segment of CONDA_PREFIX.
1036 # - stacked_env Comma-separated list of names in the environment stack. The first element is
1037 # always the same as default_env.
1038 #
1039 # Note: '({default_env}) ' is the default value of env_prompt.
1040 #
1041 # The default value of POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION expands to $CONDA_PROMPT_MODIFIER
1042 # without the surrounding parentheses, or to the last path component of CONDA_PREFIX if the former
1043 # is empty.
1044 typeset -g POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION='${${${${CONDA_PROMPT_MODIFIER#\(}% }%\)}:-${CONDA_PREFIX:t}}'
1045
1046 # Custom icon.
1047 # typeset -g POWERLEVEL9K_ANACONDA_VISUAL_IDENTIFIER_EXPANSION='⭐'
1048
1049 ################[ pyenv: python environment (https://github.com/pyenv/pyenv) ]################
1050 # Pyenv color.
1051 typeset -g POWERLEVEL9K_PYENV_FOREGROUND=0
1052 typeset -g POWERLEVEL9K_PYENV_BACKGROUND=4
1053 # Hide python version if it doesn't come from one of these sources.
1054 typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local global)
1055 # If set to false, hide python version if it's the same as global:
1056 # $(pyenv version-name) == $(pyenv global).
1057 typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
1058 # If set to false, hide python version if it's equal to "system".
1059 typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
1060
1061 # Pyenv segment format. The following parameters are available within the expansion.
1062 #
1063 # - P9K_CONTENT Current pyenv environment (pyenv version-name).
1064 # - P9K_PYENV_PYTHON_VERSION Current python version (python --version).
1065 #
1066 # The default format has the following logic:
1067 #
1068 # 1. Display just "$P9K_CONTENT" if it's equal to "$P9K_PYENV_PYTHON_VERSION" or
1069 # starts with "$P9K_PYENV_PYTHON_VERSION/".
1070 # 2. Otherwise display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION".
1071 typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+ $P9K_PYENV_PYTHON_VERSION}'
1072
1073 # Custom icon.
1074 # typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
1075
1076 ################[ goenv: go environment (https://github.com/syndbg/goenv) ]################
1077 # Goenv color.
1078 typeset -g POWERLEVEL9K_GOENV_FOREGROUND=0
1079 typeset -g POWERLEVEL9K_GOENV_BACKGROUND=4
1080 # Hide go version if it doesn't come from one of these sources.
1081 typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local global)
1082 # If set to false, hide go version if it's the same as global:
1083 # $(goenv version-name) == $(goenv global).
1084 typeset -g POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=false
1085 # If set to false, hide go version if it's equal to "system".
1086 typeset -g POWERLEVEL9K_GOENV_SHOW_SYSTEM=true
1087 # Custom icon.
1088 # typeset -g POWERLEVEL9K_GOENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
1089
1090 ##########[ nodenv: node.js version from nodenv (https://github.com/nodenv/nodenv) ]##########
1091 # Nodenv color.
1092 typeset -g POWERLEVEL9K_NODENV_FOREGROUND=2
1093 typeset -g POWERLEVEL9K_NODENV_BACKGROUND=0
1094 # Hide node version if it doesn't come from one of these sources.
1095 typeset -g POWERLEVEL9K_NODENV_SOURCES=(shell local global)
1096 # If set to false, hide node version if it's the same as global:
1097 # $(nodenv version-name) == $(nodenv global).
1098 typeset -g POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW=false
1099 # If set to false, hide node version if it's equal to "system".
1100 typeset -g POWERLEVEL9K_NODENV_SHOW_SYSTEM=true
1101 # Custom icon.
1102 # typeset -g POWERLEVEL9K_NODENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
1103
1104 ##############[ nvm: node.js version from nvm (https://github.com/nvm-sh/nvm) ]###############
1105 # Nvm color.
1106 typeset -g POWERLEVEL9K_NVM_FOREGROUND=0
1107 typeset -g POWERLEVEL9K_NVM_BACKGROUND=5
1108 # If set to false, hide node version if it's the same as default:
1109 # $(nvm version current) == $(nvm version default).
1110 typeset -g POWERLEVEL9K_NVM_PROMPT_ALWAYS_SHOW=false
1111 # If set to false, hide node version if it's equal to "system".
1112 typeset -g POWERLEVEL9K_NVM_SHOW_SYSTEM=true
1113 # Custom icon.
1114 # typeset -g POWERLEVEL9K_NVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
1115
1116 ############[ nodeenv: node.js environment (https://github.com/ekalinin/nodeenv) ]############
1117 # Nodeenv color.
1118 typeset -g POWERLEVEL9K_NODEENV_FOREGROUND=2
1119 typeset -g POWERLEVEL9K_NODEENV_BACKGROUND=0
1120 # Don't show Node version next to the environment name.
1121 typeset -g POWERLEVEL9K_NODEENV_SHOW_NODE_VERSION=false
1122 # Separate environment name from Node version only with a space.
1123 typeset -g POWERLEVEL9K_NODEENV_{LEFT,RIGHT}_DELIMITER=
1124 # Custom icon.
1125 # typeset -g POWERLEVEL9K_NODEENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
1126
1127 ##############################[ node_version: node.js version ]###############################
1128 # Node version color.
1129 typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=7
1130 typeset -g POWERLEVEL9K_NODE_VERSION_BACKGROUND=2
1131 # Show node version only when in a directory tree containing package.json.
1132 typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true
1133 # Custom icon.
1134 # typeset -g POWERLEVEL9K_NODE_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
1135
1136 #######################[ go_version: go version (https://golang.org) ]########################
1137 # Go version color.
1138 typeset -g POWERLEVEL9K_GO_VERSION_FOREGROUND=255
1139 typeset -g POWERLEVEL9K_GO_VERSION_BACKGROUND=2
1140 # Show go version only when in a go project subdirectory.
1141 typeset -g POWERLEVEL9K_GO_VERSION_PROJECT_ONLY=true
1142 # Custom icon.
1143 # typeset -g POWERLEVEL9K_GO_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
1144
1145 #################[ rust_version: rustc version (https://www.rust-lang.org) ]##################
1146 # Rust version color.
1147 typeset -g POWERLEVEL9K_RUST_VERSION_FOREGROUND=0
1148 typeset -g POWERLEVEL9K_RUST_VERSION_BACKGROUND=208
1149 # Show rust version only when in a rust project subdirectory.
1150 typeset -g POWERLEVEL9K_RUST_VERSION_PROJECT_ONLY=true
1151 # Custom icon.
1152 # typeset -g POWERLEVEL9K_RUST_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
1153
1154 ###############[ dotnet_version: .NET version (https://dotnet.microsoft.com) ]################
1155 # .NET version color.
1156 typeset -g POWERLEVEL9K_DOTNET_VERSION_FOREGROUND=7
1157 typeset -g POWERLEVEL9K_DOTNET_VERSION_BACKGROUND=5
1158 # Show .NET version only when in a .NET project subdirectory.
1159 typeset -g POWERLEVEL9K_DOTNET_VERSION_PROJECT_ONLY=true
1160 # Custom icon.
1161 # typeset -g POWERLEVEL9K_DOTNET_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
1162
1163 #####################[ php_version: php version (https://www.php.net/) ]######################
1164 # PHP version color.
1165 typeset -g POWERLEVEL9K_PHP_VERSION_FOREGROUND=0
1166 typeset -g POWERLEVEL9K_PHP_VERSION_BACKGROUND=5
1167 # Show PHP version only when in a PHP project subdirectory.
1168 typeset -g POWERLEVEL9K_PHP_VERSION_PROJECT_ONLY=true
1169 # Custom icon.
1170 # typeset -g POWERLEVEL9K_PHP_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
1171
1172 ##########[ laravel_version: laravel php framework version (https://laravel.com/) ]###########
1173 # Laravel version color.
1174 typeset -g POWERLEVEL9K_LARAVEL_VERSION_FOREGROUND=1
1175 typeset -g POWERLEVEL9K_LARAVEL_VERSION_BACKGROUND=7
1176 # Custom icon.
1177 # typeset -g POWERLEVEL9K_LARAVEL_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
1178
1179 #############[ rbenv: ruby version from rbenv (https://github.com/rbenv/rbenv) ]##############
1180 # Rbenv color.
1181 typeset -g POWERLEVEL9K_RBENV_FOREGROUND=0
1182 typeset -g POWERLEVEL9K_RBENV_BACKGROUND=1
1183 # Hide ruby version if it doesn't come from one of these sources.
1184 typeset -g POWERLEVEL9K_RBENV_SOURCES=(shell local global)
1185 # If set to false, hide ruby version if it's the same as global:
1186 # $(rbenv version-name) == $(rbenv global).
1187 typeset -g POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false
1188 # If set to false, hide ruby version if it's equal to "system".
1189 typeset -g POWERLEVEL9K_RBENV_SHOW_SYSTEM=true
1190 # Custom icon.
1191 # typeset -g POWERLEVEL9K_RBENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
1192
1193 ####################[ java_version: java version (https://www.java.com/) ]####################
1194 # Java version color.
1195 typeset -g POWERLEVEL9K_JAVA_VERSION_FOREGROUND=1
1196 typeset -g POWERLEVEL9K_JAVA_VERSION_BACKGROUND=7
1197 # Show java version only when in a java project subdirectory.
1198 typeset -g POWERLEVEL9K_JAVA_VERSION_PROJECT_ONLY=true
1199 # Show brief version.
1200 typeset -g POWERLEVEL9K_JAVA_VERSION_FULL=false
1201 # Custom icon.
1202 # typeset -g POWERLEVEL9K_JAVA_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
1203
1204 ###[ package: name@version from package.json (https://docs.npmjs.com/files/package.json) ]####
1205 # Package color.
1206 typeset -g POWERLEVEL9K_PACKAGE_FOREGROUND=0
1207 typeset -g POWERLEVEL9K_PACKAGE_BACKGROUND=6
1208
1209 # Package format. The following parameters are available within the expansion.
1210 #
1211 # - P9K_PACKAGE_NAME The value of `name` field in package.json.
1212 # - P9K_PACKAGE_VERSION The value of `version` field in package.json.
1213 #
1214 # typeset -g POWERLEVEL9K_PACKAGE_CONTENT_EXPANSION='${P9K_PACKAGE_NAME//\%/%%}@${P9K_PACKAGE_VERSION//\%/%%}'
1215
1216 # Custom icon.
1217 # typeset -g POWERLEVEL9K_PACKAGE_VISUAL_IDENTIFIER_EXPANSION='⭐'
1218
1219 #######################[ rvm: ruby version from rvm (https://rvm.io) ]########################
1220 # Rvm color.
1221 typeset -g POWERLEVEL9K_RVM_FOREGROUND=0
1222 typeset -g POWERLEVEL9K_RVM_BACKGROUND=240
1223 # Don't show @gemset at the end.
1224 typeset -g POWERLEVEL9K_RVM_SHOW_GEMSET=false
1225 # Don't show ruby- at the front.
1226 typeset -g POWERLEVEL9K_RVM_SHOW_PREFIX=false
1227 # Custom icon.
1228 # typeset -g POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
1229
1230 ###########[ fvm: flutter version management (https://github.com/leoafarias/fvm) ]############
1231 # Fvm color.
1232 typeset -g POWERLEVEL9K_FVM_FOREGROUND=0
1233 typeset -g POWERLEVEL9K_FVM_BACKGROUND=4
1234 # Custom icon.
1235 # typeset -g POWERLEVEL9K_FVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
1236
1237 ##########[ luaenv: lua version from luaenv (https://github.com/cehoffman/luaenv) ]###########
1238 # Lua color.
1239 typeset -g POWERLEVEL9K_LUAENV_FOREGROUND=0
1240 typeset -g POWERLEVEL9K_LUAENV_BACKGROUND=4
1241 # Hide lua version if it doesn't come from one of these sources.
1242 typeset -g POWERLEVEL9K_LUAENV_SOURCES=(shell local global)
1243 # If set to false, hide lua version if it's the same as global:
1244 # $(luaenv version-name) == $(luaenv global).
1245 typeset -g POWERLEVEL9K_LUAENV_PROMPT_ALWAYS_SHOW=false
1246 # If set to false, hide lua version if it's equal to "system".
1247 typeset -g POWERLEVEL9K_LUAENV_SHOW_SYSTEM=true
1248 # Custom icon.
1249 # typeset -g POWERLEVEL9K_LUAENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
1250
1251 ###############[ jenv: java version from jenv (https://github.com/jenv/jenv) ]################
1252 # Java color.
1253 typeset -g POWERLEVEL9K_JENV_FOREGROUND=1
1254 typeset -g POWERLEVEL9K_JENV_BACKGROUND=7
1255 # Hide java version if it doesn't come from one of these sources.
1256 typeset -g POWERLEVEL9K_JENV_SOURCES=(shell local global)
1257 # If set to false, hide java version if it's the same as global:
1258 # $(jenv version-name) == $(jenv global).
1259 typeset -g POWERLEVEL9K_JENV_PROMPT_ALWAYS_SHOW=false
1260 # If set to false, hide java version if it's equal to "system".
1261 typeset -g POWERLEVEL9K_JENV_SHOW_SYSTEM=true
1262 # Custom icon.
1263 # typeset -g POWERLEVEL9K_JENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
1264
1265 ###########[ plenv: perl version from plenv (https://github.com/tokuhirom/plenv) ]############
1266 # Perl color.
1267 typeset -g POWERLEVEL9K_PLENV_FOREGROUND=0
1268 typeset -g POWERLEVEL9K_PLENV_BACKGROUND=4
1269 # Hide perl version if it doesn't come from one of these sources.
1270 typeset -g POWERLEVEL9K_PLENV_SOURCES=(shell local global)
1271 # If set to false, hide perl version if it's the same as global:
1272 # $(plenv version-name) == $(plenv global).
1273 typeset -g POWERLEVEL9K_PLENV_PROMPT_ALWAYS_SHOW=false
1274 # If set to false, hide perl version if it's equal to "system".
1275 typeset -g POWERLEVEL9K_PLENV_SHOW_SYSTEM=true
1276 # Custom icon.
1277 # typeset -g POWERLEVEL9K_PLENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
1278
1279 ###########[ perlbrew: perl version from perlbrew (https://github.com/gugod/App-perlbrew) ]############
1280 # Perlbrew color.
1281 typeset -g POWERLEVEL9K_PERLBREW_FOREGROUND=67
1282 # Show perlbrew version only when in a perl project subdirectory.
1283 typeset -g POWERLEVEL9K_PERLBREW_PROJECT_ONLY=true
1284 # Don't show "perl-" at the front.
1285 typeset -g POWERLEVEL9K_PERLBREW_SHOW_PREFIX=false
1286 # Custom icon.
1287 # typeset -g POWERLEVEL9K_PERLBREW_VISUAL_IDENTIFIER_EXPANSION='⭐'
1288
1289 ############[ phpenv: php version from phpenv (https://github.com/phpenv/phpenv) ]############
1290 # PHP color.
1291 typeset -g POWERLEVEL9K_PHPENV_FOREGROUND=0
1292 typeset -g POWERLEVEL9K_PHPENV_BACKGROUND=5
1293 # Hide php version if it doesn't come from one of these sources.
1294 typeset -g POWERLEVEL9K_PHPENV_SOURCES=(shell local global)
1295 # If set to false, hide php version if it's the same as global:
1296 # $(phpenv version-name) == $(phpenv global).
1297 typeset -g POWERLEVEL9K_PHPENV_PROMPT_ALWAYS_SHOW=false
1298 # If set to false, hide PHP version if it's equal to "system".
1299 typeset -g POWERLEVEL9K_PHPENV_SHOW_SYSTEM=true
1300 # Custom icon.
1301 # typeset -g POWERLEVEL9K_PHPENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
1302
1303 #######[ scalaenv: scala version from scalaenv (https://github.com/scalaenv/scalaenv) ]#######
1304 # Scala color.
1305 typeset -g POWERLEVEL9K_SCALAENV_FOREGROUND=0
1306 typeset -g POWERLEVEL9K_SCALAENV_BACKGROUND=1
1307 # Hide scala version if it doesn't come from one of these sources.
1308 typeset -g POWERLEVEL9K_SCALAENV_SOURCES=(shell local global)
1309 # If set to false, hide scala version if it's the same as global:
1310 # $(scalaenv version-name) == $(scalaenv global).
1311 typeset -g POWERLEVEL9K_SCALAENV_PROMPT_ALWAYS_SHOW=false
1312 # If set to false, hide scala version if it's equal to "system".
1313 typeset -g POWERLEVEL9K_SCALAENV_SHOW_SYSTEM=true
1314 # Custom icon.
1315 # typeset -g POWERLEVEL9K_SCALAENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
1316
1317 ##########[ haskell_stack: haskell version from stack (https://haskellstack.org/) ]###########
1318 # Haskell color.
1319 typeset -g POWERLEVEL9K_HASKELL_STACK_FOREGROUND=0
1320 typeset -g POWERLEVEL9K_HASKELL_STACK_BACKGROUND=3
1321
1322 # Hide haskell version if it doesn't come from one of these sources.
1323 #
1324 # shell: version is set by STACK_YAML
1325 # local: version is set by stack.yaml up the directory tree
1326 # global: version is set by the implicit global project (~/.stack/global-project/stack.yaml)
1327 typeset -g POWERLEVEL9K_HASKELL_STACK_SOURCES=(shell local)
1328 # If set to false, hide haskell version if it's the same as in the implicit global project.
1329 typeset -g POWERLEVEL9K_HASKELL_STACK_ALWAYS_SHOW=true
1330 # Custom icon.
1331 # typeset -g POWERLEVEL9K_HASKELL_STACK_VISUAL_IDENTIFIER_EXPANSION='⭐'
1332
1333 ################[ terraform: terraform workspace (https://www.terraform.io) ]#################
1334 # Don't show terraform workspace if it's literally "default".
1335 typeset -g POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT=false
1336 # POWERLEVEL9K_TERRAFORM_CLASSES is an array with even number of elements. The first element
1337 # in each pair defines a pattern against which the current terraform workspace gets matched.
1338 # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)
1339 # that gets matched. If you unset all POWERLEVEL9K_TERRAFORM_*CONTENT_EXPANSION parameters,
1340 # you'll see this value in your prompt. The second element of each pair in
1341 # POWERLEVEL9K_TERRAFORM_CLASSES defines the workspace class. Patterns are tried in order. The
1342 # first match wins.
1343 #
1344 # For example, given these settings:
1345 #
1346 # typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=(
1347 # '*prod*' PROD
1348 # '*test*' TEST
1349 # '*' OTHER)
1350 #
1351 # If your current terraform workspace is "project_test", its class is TEST because "project_test"
1352 # doesn't match the pattern '*prod*' but does match '*test*'.
1353 #
1354 # You can define different colors, icons and content expansions for different classes:
1355 #
1356 # typeset -g POWERLEVEL9K_TERRAFORM_TEST_FOREGROUND=2
1357 # typeset -g POWERLEVEL9K_TERRAFORM_TEST_BACKGROUND=0
1358 # typeset -g POWERLEVEL9K_TERRAFORM_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
1359 # typeset -g POWERLEVEL9K_TERRAFORM_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'
1360 typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=(
1361 # '*prod*' PROD # These values are examples that are unlikely
1362 # '*test*' TEST # to match your needs. Customize them as needed.
1363 '*' OTHER)
1364 typeset -g POWERLEVEL9K_TERRAFORM_OTHER_FOREGROUND=4
1365 typeset -g POWERLEVEL9K_TERRAFORM_OTHER_BACKGROUND=0
1366 # typeset -g POWERLEVEL9K_TERRAFORM_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐'
1367
1368 #############[ terraform_version: terraform version (https://www.terraform.io) ]##############
1369 # Terraform version color.
1370 typeset -g POWERLEVEL9K_TERRAFORM_VERSION_FOREGROUND=4
1371 typeset -g POWERLEVEL9K_TERRAFORM_VERSION_BACKGROUND=0
1372 # Custom icon.
1373 # typeset -g POWERLEVEL9K_TERRAFORM_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
1374
1375 ################[ terraform_version: It shows active terraform version (https://www.terraform.io) ]#################
1376 typeset -g POWERLEVEL9K_TERRAFORM_VERSION_SHOW_ON_COMMAND='terraform|tf'
1377
1378 #############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
1379 # Show kubecontext only when the command you are typing invokes one of these tools.
1380 # Tip: Remove the next line to always show kubecontext.
1381 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'
1382
1383 # Kubernetes context classes for the purpose of using different colors, icons and expansions with
1384 # different contexts.
1385 #
1386 # POWERLEVEL9K_KUBECONTEXT_CLASSES is an array with even number of elements. The first element
1387 # in each pair defines a pattern against which the current kubernetes context gets matched.
1388 # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)
1389 # that gets matched. If you unset all POWERLEVEL9K_KUBECONTEXT_*CONTENT_EXPANSION parameters,
1390 # you'll see this value in your prompt. The second element of each pair in
1391 # POWERLEVEL9K_KUBECONTEXT_CLASSES defines the context class. Patterns are tried in order. The
1392 # first match wins.
1393 #
1394 # For example, given these settings:
1395 #
1396 # typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=(
1397 # '*prod*' PROD
1398 # '*test*' TEST
1399 # '*' DEFAULT)
1400 #
1401 # If your current kubernetes context is "deathray-testing/default", its class is TEST
1402 # because "deathray-testing/default" doesn't match the pattern '*prod*' but does match '*test*'.
1403 #
1404 # You can define different colors, icons and content expansions for different classes:
1405 #
1406 # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_FOREGROUND=0
1407 # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_BACKGROUND=2
1408 # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
1409 # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'
1410 typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=(
1411 # '*prod*' PROD # These values are examples that are unlikely
1412 # '*test*' TEST # to match your needs. Customize them as needed.
1413 '*' DEFAULT)
1414 typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=7
1415 typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_BACKGROUND=5
1416 # typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
1417
1418 # Use POWERLEVEL9K_KUBECONTEXT_CONTENT_EXPANSION to specify the content displayed by kubecontext
1419 # segment. Parameter expansions are very flexible and fast, too. See reference:
1420 # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion.
1421 #
1422 # Within the expansion the following parameters are always available:
1423 #
1424 # - P9K_CONTENT The content that would've been displayed if there was no content
1425 # expansion defined.
1426 # - P9K_KUBECONTEXT_NAME The current context's name. Corresponds to column NAME in the
1427 # output of `kubectl config get-contexts`.
1428 # - P9K_KUBECONTEXT_CLUSTER The current context's cluster. Corresponds to column CLUSTER in the
1429 # output of `kubectl config get-contexts`.
1430 # - P9K_KUBECONTEXT_NAMESPACE The current context's namespace. Corresponds to column NAMESPACE
1431 # in the output of `kubectl config get-contexts`. If there is no
1432 # namespace, the parameter is set to "default".
1433 # - P9K_KUBECONTEXT_USER The current context's user. Corresponds to column AUTHINFO in the
1434 # output of `kubectl config get-contexts`.
1435 #
1436 # If the context points to Google Kubernetes Engine (GKE) or Elastic Kubernetes Service (EKS),
1437 # the following extra parameters are available:
1438 #
1439 # - P9K_KUBECONTEXT_CLOUD_NAME Either "gke" or "eks".
1440 # - P9K_KUBECONTEXT_CLOUD_ACCOUNT Account/project ID.
1441 # - P9K_KUBECONTEXT_CLOUD_ZONE Availability zone.
1442 # - P9K_KUBECONTEXT_CLOUD_CLUSTER Cluster.
1443 #
1444 # P9K_KUBECONTEXT_CLOUD_* parameters are derived from P9K_KUBECONTEXT_CLUSTER. For example,
1445 # if P9K_KUBECONTEXT_CLUSTER is "gke_my-account_us-east1-a_my-cluster-01":
1446 #
1447 # - P9K_KUBECONTEXT_CLOUD_NAME=gke
1448 # - P9K_KUBECONTEXT_CLOUD_ACCOUNT=my-account
1449 # - P9K_KUBECONTEXT_CLOUD_ZONE=us-east1-a
1450 # - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01
1451 #
1452 # If P9K_KUBECONTEXT_CLUSTER is "arn:aws:eks:us-east-1:123456789012:cluster/my-cluster-01":
1453 #
1454 # - P9K_KUBECONTEXT_CLOUD_NAME=eks
1455 # - P9K_KUBECONTEXT_CLOUD_ACCOUNT=123456789012
1456 # - P9K_KUBECONTEXT_CLOUD_ZONE=us-east-1
1457 # - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01
1458 typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION=
1459 # Show P9K_KUBECONTEXT_CLOUD_CLUSTER if it's not empty and fall back to P9K_KUBECONTEXT_NAME.
1460 POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${P9K_KUBECONTEXT_CLOUD_CLUSTER:-${P9K_KUBECONTEXT_NAME}}'
1461 # Append the current context's namespace if it's not "default".
1462 POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${${:-/$P9K_KUBECONTEXT_NAMESPACE}:#/default}'
1463
1464 # Custom prefix.
1465 # typeset -g POWERLEVEL9K_KUBECONTEXT_PREFIX='at '
1466
1467 #[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]#
1468 # Show aws only when the command you are typing invokes one of these tools.
1469 # Tip: Remove the next line to always show aws.
1470 typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|cdk|terraform|pulumi|terragrunt'
1471
1472 # POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element
1473 # in each pair defines a pattern against which the current AWS profile gets matched.
1474 # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)
1475 # that gets matched. If you unset all POWERLEVEL9K_AWS_*CONTENT_EXPANSION parameters,
1476 # you'll see this value in your prompt. The second element of each pair in
1477 # POWERLEVEL9K_AWS_CLASSES defines the profile class. Patterns are tried in order. The
1478 # first match wins.
1479 #
1480 # For example, given these settings:
1481 #
1482 # typeset -g POWERLEVEL9K_AWS_CLASSES=(
1483 # '*prod*' PROD
1484 # '*test*' TEST
1485 # '*' DEFAULT)
1486 #
1487 # If your current AWS profile is "company_test", its class is TEST
1488 # because "company_test" doesn't match the pattern '*prod*' but does match '*test*'.
1489 #
1490 # You can define different colors, icons and content expansions for different classes:
1491 #
1492 # typeset -g POWERLEVEL9K_AWS_TEST_FOREGROUND=28
1493 # typeset -g POWERLEVEL9K_AWS_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
1494 # typeset -g POWERLEVEL9K_AWS_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'
1495 typeset -g POWERLEVEL9K_AWS_CLASSES=(
1496 # '*prod*' PROD # These values are examples that are unlikely
1497 # '*test*' TEST # to match your needs. Customize them as needed.
1498 '*' DEFAULT)
1499 typeset -g POWERLEVEL9K_AWS_DEFAULT_FOREGROUND=7
1500 typeset -g POWERLEVEL9K_AWS_DEFAULT_BACKGROUND=1
1501 # typeset -g POWERLEVEL9K_AWS_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
1502
1503 # AWS segment format. The following parameters are available within the expansion.
1504 #
1505 # - P9K_AWS_PROFILE The name of the current AWS profile.
1506 # - P9K_AWS_REGION The region associated with the current AWS profile.
1507 typeset -g POWERLEVEL9K_AWS_CONTENT_EXPANSION='${P9K_AWS_PROFILE//\%/%%}${P9K_AWS_REGION:+ ${P9K_AWS_REGION//\%/%%}}'
1508
1509 #[ aws_eb_env: aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/) ]#
1510 # AWS Elastic Beanstalk environment color.
1511 typeset -g POWERLEVEL9K_AWS_EB_ENV_FOREGROUND=2
1512 typeset -g POWERLEVEL9K_AWS_EB_ENV_BACKGROUND=0
1513 # Custom icon.
1514 # typeset -g POWERLEVEL9K_AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
1515
1516 ##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]##########
1517 # Show azure only when the command you are typing invokes one of these tools.
1518 # Tip: Remove the next line to always show azure.
1519 typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi|terragrunt'
1520
1521 # POWERLEVEL9K_AZURE_CLASSES is an array with even number of elements. The first element
1522 # in each pair defines a pattern against which the current azure account name gets matched.
1523 # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)
1524 # that gets matched. If you unset all POWERLEVEL9K_AZURE_*CONTENT_EXPANSION parameters,
1525 # you'll see this value in your prompt. The second element of each pair in
1526 # POWERLEVEL9K_AZURE_CLASSES defines the account class. Patterns are tried in order. The
1527 # first match wins.
1528 #
1529 # For example, given these settings:
1530 #
1531 # typeset -g POWERLEVEL9K_AZURE_CLASSES=(
1532 # '*prod*' PROD
1533 # '*test*' TEST
1534 # '*' OTHER)
1535 #
1536 # If your current azure account is "company_test", its class is TEST because "company_test"
1537 # doesn't match the pattern '*prod*' but does match '*test*'.
1538 #
1539 # You can define different colors, icons and content expansions for different classes:
1540 #
1541 # typeset -g POWERLEVEL9K_AZURE_TEST_FOREGROUND=2
1542 # typeset -g POWERLEVEL9K_AZURE_TEST_BACKGROUND=0
1543 # typeset -g POWERLEVEL9K_AZURE_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
1544 # typeset -g POWERLEVEL9K_AZURE_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'
1545 typeset -g POWERLEVEL9K_AZURE_CLASSES=(
1546 # '*prod*' PROD # These values are examples that are unlikely
1547 # '*test*' TEST # to match your needs. Customize them as needed.
1548 '*' OTHER)
1549
1550 # Azure account name color.
1551 typeset -g POWERLEVEL9K_AZURE_OTHER_FOREGROUND=7
1552 typeset -g POWERLEVEL9K_AZURE_OTHER_BACKGROUND=4
1553 # Custom icon.
1554 # typeset -g POWERLEVEL9K_AZURE_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐'
1555
1556 ##########[ gcloud: google cloud account and project (https://cloud.google.com/) ]###########
1557 # Show gcloud only when the command you are typing invokes one of these tools.
1558 # Tip: Remove the next line to always show gcloud.
1559 typeset -g POWERLEVEL9K_GCLOUD_SHOW_ON_COMMAND='gcloud|gcs|gsutil'
1560 # Google cloud color.
1561 typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=7
1562 typeset -g POWERLEVEL9K_GCLOUD_BACKGROUND=4
1563
1564 # Google cloud format. Change the value of POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION and/or
1565 # POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION if the default is too verbose or not informative
1566 # enough. You can use the following parameters in the expansions. Each of them corresponds to the
1567 # output of `gcloud` tool.
1568 #
1569 # Parameter | Source
1570 # -------------------------|--------------------------------------------------------------------
1571 # P9K_GCLOUD_CONFIGURATION | gcloud config configurations list --format='value(name)'
1572 # P9K_GCLOUD_ACCOUNT | gcloud config get-value account
1573 # P9K_GCLOUD_PROJECT_ID | gcloud config get-value project
1574 # P9K_GCLOUD_PROJECT_NAME | gcloud projects describe $P9K_GCLOUD_PROJECT_ID --format='value(name)'
1575 #
1576 # Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurrences of '%' replaced with '%%'.
1577 #
1578 # Obtaining project name requires sending a request to Google servers. This can take a long time
1579 # and even fail. When project name is unknown, P9K_GCLOUD_PROJECT_NAME is not set and gcloud
1580 # prompt segment is in state PARTIAL. When project name gets known, P9K_GCLOUD_PROJECT_NAME gets
1581 # set and gcloud prompt segment transitions to state COMPLETE.
1582 #
1583 # You can customize the format, icon and colors of gcloud segment separately for states PARTIAL
1584 # and COMPLETE. You can also hide gcloud in state PARTIAL by setting
1585 # POWERLEVEL9K_GCLOUD_PARTIAL_VISUAL_IDENTIFIER_EXPANSION and
1586 # POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION to empty.
1587 typeset -g POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_ID//\%/%%}'
1588 typeset -g POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_NAME//\%/%%}'
1589
1590 # Send a request to Google (by means of `gcloud projects describe ...`) to obtain project name
1591 # this often. Negative value disables periodic polling. In this mode project name is retrieved
1592 # only when the current configuration, account or project id changes.
1593 typeset -g POWERLEVEL9K_GCLOUD_REFRESH_PROJECT_NAME_SECONDS=60
1594
1595 # Custom icon.
1596 # typeset -g POWERLEVEL9K_GCLOUD_VISUAL_IDENTIFIER_EXPANSION='⭐'
1597
1598 #[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]#
1599 # Show google_app_cred only when the command you are typing invokes one of these tools.
1600 # Tip: Remove the next line to always show google_app_cred.
1601 typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi|terragrunt'
1602
1603 # Google application credentials classes for the purpose of using different colors, icons and
1604 # expansions with different credentials.
1605 #
1606 # POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES is an array with even number of elements. The first
1607 # element in each pair defines a pattern against which the current kubernetes context gets
1608 # matched. More specifically, it's P9K_CONTENT prior to the application of context expansion
1609 # (see below) that gets matched. If you unset all POWERLEVEL9K_GOOGLE_APP_CRED_*CONTENT_EXPANSION
1610 # parameters, you'll see this value in your prompt. The second element of each pair in
1611 # POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES defines the context class. Patterns are tried in order.
1612 # The first match wins.
1613 #
1614 # For example, given these settings:
1615 #
1616 # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=(
1617 # '*:*prod*:*' PROD
1618 # '*:*test*:*' TEST
1619 # '*' DEFAULT)
1620 #
1621 # If your current Google application credentials is "service_account deathray-testing x@y.com",
1622 # its class is TEST because it doesn't match the pattern '* *prod* *' but does match '* *test* *'.
1623 #
1624 # You can define different colors, icons and content expansions for different classes:
1625 #
1626 # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_FOREGROUND=28
1627 # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
1628 # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_CONTENT_EXPANSION='$P9K_GOOGLE_APP_CRED_PROJECT_ID'
1629 typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=(
1630 # '*:*prod*:*' PROD # These values are examples that are unlikely
1631 # '*:*test*:*' TEST # to match your needs. Customize them as needed.
1632 '*' DEFAULT)
1633 typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_FOREGROUND=7
1634 typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_BACKGROUND=4
1635 # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
1636
1637 # Use POWERLEVEL9K_GOOGLE_APP_CRED_CONTENT_EXPANSION to specify the content displayed by
1638 # google_app_cred segment. Parameter expansions are very flexible and fast, too. See reference:
1639 # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion.
1640 #
1641 # You can use the following parameters in the expansion. Each of them corresponds to one of the
1642 # fields in the JSON file pointed to by GOOGLE_APPLICATION_CREDENTIALS.
1643 #
1644 # Parameter | JSON key file field
1645 # ---------------------------------+---------------
1646 # P9K_GOOGLE_APP_CRED_TYPE | type
1647 # P9K_GOOGLE_APP_CRED_PROJECT_ID | project_id
1648 # P9K_GOOGLE_APP_CRED_CLIENT_EMAIL | client_email
1649 #
1650 # Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurrences of '%' replaced by '%%'.
1651 typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_CONTENT_EXPANSION='${P9K_GOOGLE_APP_CRED_PROJECT_ID//\%/%%}'
1652
1653 ##############[ toolbox: toolbox name (https://github.com/containers/toolbox) ]###############
1654 # Toolbox color.
1655 typeset -g POWERLEVEL9K_TOOLBOX_FOREGROUND=0
1656 typeset -g POWERLEVEL9K_TOOLBOX_BACKGROUND=3
1657 # Don't display the name of the toolbox if it matches fedora-toolbox-*.
1658 typeset -g POWERLEVEL9K_TOOLBOX_CONTENT_EXPANSION='${P9K_TOOLBOX_NAME:#fedora-toolbox-*}'
1659 # Custom icon.
1660 # typeset -g POWERLEVEL9K_TOOLBOX_VISUAL_IDENTIFIER_EXPANSION='⭐'
1661 # Custom prefix.
1662 # typeset -g POWERLEVEL9K_TOOLBOX_PREFIX='in '
1663
1664 ###############################[ public_ip: public IP address ]###############################
1665 # Public IP color.
1666 typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=7
1667 typeset -g POWERLEVEL9K_PUBLIC_IP_BACKGROUND=0
1668 # Custom icon.
1669 # typeset -g POWERLEVEL9K_PUBLIC_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'
1670
1671 ########################[ vpn_ip: virtual private network indicator ]#########################
1672 # VPN IP color.
1673 typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=0
1674 typeset -g POWERLEVEL9K_VPN_IP_BACKGROUND=6
1675 # When on VPN, show just an icon without the IP address.
1676 # Tip: To display the private IP address when on VPN, remove the next line.
1677 typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION=
1678 # Regular expression for the VPN network interface. Run `ifconfig` or `ip -4 a show` while on VPN
1679 # to see the name of the interface.
1680 typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(gpd|wg|(.*tun)|tailscale)[0-9]*|(zt.*)'
1681 # If set to true, show one segment per matching network interface. If set to false, show only
1682 # one segment corresponding to the first matching network interface.
1683 # Tip: If you set it to true, you'll probably want to unset POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION.
1684 typeset -g POWERLEVEL9K_VPN_IP_SHOW_ALL=false
1685 # Custom icon.
1686 # typeset -g POWERLEVEL9K_VPN_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'
1687
1688 ###########[ ip: ip address and bandwidth usage for a specified network interface ]###########
1689 # IP color.
1690 typeset -g POWERLEVEL9K_IP_BACKGROUND=4
1691 typeset -g POWERLEVEL9K_IP_FOREGROUND=0
1692 # The following parameters are accessible within the expansion:
1693 #
1694 # Parameter | Meaning
1695 # ----------------------+-------------------------------------------
1696 # P9K_IP_IP | IP address
1697 # P9K_IP_INTERFACE | network interface
1698 # P9K_IP_RX_BYTES | total number of bytes received
1699 # P9K_IP_TX_BYTES | total number of bytes sent
1700 # P9K_IP_RX_BYTES_DELTA | number of bytes received since last prompt
1701 # P9K_IP_TX_BYTES_DELTA | number of bytes sent since last prompt
1702 # P9K_IP_RX_RATE | receive rate (since last prompt)
1703 # P9K_IP_TX_RATE | send rate (since last prompt)
1704 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'
1705 # Show information for the first network interface whose name matches this regular expression.
1706 # Run `ifconfig` or `ip -4 a show` to see the names of all network interfaces.
1707 typeset -g POWERLEVEL9K_IP_INTERFACE='[ew].*'
1708 # Custom icon.
1709 # typeset -g POWERLEVEL9K_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'
1710
1711 #########################[ proxy: system-wide http/https/ftp proxy ]##########################
1712 # Proxy color.
1713 typeset -g POWERLEVEL9K_PROXY_FOREGROUND=4
1714 typeset -g POWERLEVEL9K_PROXY_BACKGROUND=0
1715 # Custom icon.
1716 # typeset -g POWERLEVEL9K_PROXY_VISUAL_IDENTIFIER_EXPANSION='⭐'
1717
1718 ################################[ battery: internal battery ]#################################
1719 # Show battery in red when it's below this level and not connected to power supply.
1720 typeset -g POWERLEVEL9K_BATTERY_LOW_THRESHOLD=20
1721 typeset -g POWERLEVEL9K_BATTERY_LOW_FOREGROUND=1
1722 # Show battery in green when it's charging or fully charged.
1723 typeset -g POWERLEVEL9K_BATTERY_{CHARGING,CHARGED}_FOREGROUND=2
1724 # Show battery in yellow when it's discharging.
1725 typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=3
1726 # Battery pictograms going from low to high level of charge.
1727 typeset -g POWERLEVEL9K_BATTERY_STAGES='\UF008E\UF007A\UF007B\UF007C\UF007D\UF007E\UF007F\UF0080\UF0081\UF0082\UF0079'
1728 # Don't show the remaining time to charge/discharge.
1729 typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false
1730 typeset -g POWERLEVEL9K_BATTERY_BACKGROUND=0
1731
1732 #####################################[ wifi: wifi speed ]#####################################
1733 # WiFi color.
1734 typeset -g POWERLEVEL9K_WIFI_FOREGROUND=0
1735 typeset -g POWERLEVEL9K_WIFI_BACKGROUND=4
1736 # Custom icon.
1737 # typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='⭐'
1738
1739 # Use different colors and icons depending on signal strength ($P9K_WIFI_BARS).
1740 #
1741 # # Wifi colors and icons for different signal strength levels (low to high).
1742 # typeset -g my_wifi_fg=(0 0 0 0 0) # <-- change these values
1743 # typeset -g my_wifi_icon=('WiFi' 'WiFi' 'WiFi' 'WiFi' 'WiFi') # <-- change these values
1744 #
1745 # typeset -g POWERLEVEL9K_WIFI_CONTENT_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}$P9K_WIFI_LAST_TX_RATE Mbps'
1746 # typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}${my_wifi_icon[P9K_WIFI_BARS+1]}'
1747 #
1748 # The following parameters are accessible within the expansions:
1749 #
1750 # Parameter | Meaning
1751 # ----------------------+---------------
1752 # P9K_WIFI_SSID | service set identifier, a.k.a. network name
1753 # P9K_WIFI_LINK_AUTH | authentication protocol such as "wpa2-psk" or "none"; empty if unknown
1754 # P9K_WIFI_LAST_TX_RATE | wireless transmit rate in megabits per second
1755 # P9K_WIFI_RSSI | signal strength in dBm, from -120 to 0
1756 # P9K_WIFI_NOISE | noise in dBm, from -120 to 0
1757 # P9K_WIFI_BARS | signal strength in bars, from 0 to 4 (derived from P9K_WIFI_RSSI and P9K_WIFI_NOISE)
1758
1759 ####################################[ time: current time ]####################################
1760 # Current time color.
1761 typeset -g POWERLEVEL9K_TIME_FOREGROUND=0
1762 typeset -g POWERLEVEL9K_TIME_BACKGROUND=7
1763 # Format for the current time: 09:51:02. See `man 3 strftime`.
1764 typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}'
1765 # If set to true, time will update when you hit enter. This way prompts for the past
1766 # commands will contain the start times of their commands as opposed to the default
1767 # behavior where they contain the end times of their preceding commands.
1768 typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false
1769 # Custom icon.
1770 # typeset -g POWERLEVEL9K_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐'
1771 # Custom prefix.
1772 # typeset -g POWERLEVEL9K_TIME_PREFIX='at '
1773
1774 # Example of a user-defined prompt segment. Function prompt_example will be called on every
1775 # prompt if `example` prompt segment is added to POWERLEVEL9K_LEFT_PROMPT_ELEMENTS or
1776 # POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS. It displays an icon and yellow text on red background
1777 # greeting the user.
1778 #
1779 # Type `p10k help segment` for documentation and a more sophisticated example.
1780 function prompt_example() {
1781 p10k segment -b 1 -f 3 -i '⭐' -t 'hello, %n'
1782 }
1783
1784 # User-defined prompt segments may optionally provide an instant_prompt_* function. Its job
1785 # is to generate the prompt segment for display in instant prompt. See
1786 # https://github.com/romkatv/powerlevel10k#instant-prompt.
1787 #
1788 # Powerlevel10k will call instant_prompt_* at the same time as the regular prompt_* function
1789 # and will record all `p10k segment` calls it makes. When displaying instant prompt, Powerlevel10k
1790 # will replay these calls without actually calling instant_prompt_*. It is imperative that
1791 # instant_prompt_* always makes the same `p10k segment` calls regardless of environment. If this
1792 # rule is not observed, the content of instant prompt will be incorrect.
1793 #
1794 # Usually, you should either not define instant_prompt_* or simply call prompt_* from it. If
1795 # instant_prompt_* is not defined for a segment, the segment won't be shown in instant prompt.
1796 function instant_prompt_example() {
1797 # Since prompt_example always makes the same `p10k segment` calls, we can call it from
1798 # instant_prompt_example. This will give us the same `example` prompt segment in the instant
1799 # and regular prompts.
1800 prompt_example
1801 }
1802
1803 # User-defined prompt segments can be customized the same way as built-in segments.
1804 typeset -g POWERLEVEL9K_EXAMPLE_FOREGROUND=3
1805 typeset -g POWERLEVEL9K_EXAMPLE_BACKGROUND=1
1806 # typeset -g POWERLEVEL9K_EXAMPLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
1807
1808 # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt
1809 # when accepting a command line. Supported values:
1810 #
1811 # - off: Don't change prompt when accepting a command line.
1812 # - always: Trim down prompt when accepting a command line.
1813 # - same-dir: Trim down prompt when accepting a command line unless this is the first command
1814 # typed after changing current working directory.
1815 typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=always
1816
1817 # Instant prompt mode.
1818 #
1819 # - off: Disable instant prompt. Choose this if you've tried instant prompt and found
1820 # it incompatible with your zsh configuration files.
1821 # - quiet: Enable instant prompt and don't print warnings when detecting console output
1822 # during zsh initialization. Choose this if you've read and understood
1823 # https://github.com/romkatv/powerlevel10k#instant-prompt.
1824 # - verbose: Enable instant prompt and print a warning when detecting console output during
1825 # zsh initialization. Choose this if you've never tried instant prompt, haven't
1826 # seen the warning, or if you are unsure what this all means.
1827 typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose
1828
1829 # Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.
1830 # For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload
1831 # can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you
1832 # really need it.
1833 typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true
1834
1835 # If p10k is already loaded, reload configuration.
1836 # This works even with POWERLEVEL9K_DISABLE_HOT_RELOAD=true.
1837 (( ! $+functions[p10k] )) || p10k reload
1838}
1839
1840# Tell `p10k configure` which file it should overwrite.
1841typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a}
1842
1843(( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]}
1844'builtin' 'unset' 'p10k_config_opts'