@team-internet/apiconnector 10.0.0

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