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