mirror of https://github.com/Chizi123/Dotfiles.git

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