.p10k.zsh 82 KB

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