.p10k.zsh 89 KB

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