.p10k.zsh 84 KB

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