@quickcall/all-configs 0.0.0-stage → 1.0.0

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