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