sequelizer 0.1.4 → 0.1.6

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