.p10k.zsh 81 KB

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