trifle-stats 1.3.0 → 1.3.1

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