p10k.zsh 80 KB

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