.p10k.zsh 88 KB

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