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