[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-601":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},601,"powerlevel10k","romkatv\u002Fpowerlevel10k","romkatv","A Zsh theme","",null,"Shell",54411,2425,188,125,0,10,71,301,56,120,"MIT License",false,"master",[26],"zsh","2026-06-11 04:00:32","# Powerlevel10k\n[![Gitter](https:\u002F\u002Fbadges.gitter.im\u002Fpowerlevel10k\u002Fcommunity.svg)](\n  https:\u002F\u002Fgitter.im\u002Fpowerlevel10k\u002Fcommunity?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)\n\n- **THE PROJECT HAS VERY LIMITED SUPPORT**\n- **NO NEW FEATURES ARE IN THE WORKS**\n- **MOST BUGS WILL GO UNFIXED**\n- **HELP REQUESTS WILL BE IGNORED**\n\nPowerlevel10k is a theme for Zsh. It emphasizes [speed](#uncompromising-performance),\n[flexibility](#extremely-customizable) and [out-of-the-box experience](#configuration-wizard).\n\n![Powerlevel10k](\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Fprompt-styles-high-contrast.png)\n\n- [Getting started](#getting-started)\n- [Features](#features)\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Fonts](#fonts)\n- [Try it in Docker](#try-it-in-docker)\n- [License](#license)\n- [FAQ](#faq)\n- [Troubleshooting](#troubleshooting)\n\n## Getting started\n\n1. [Install the recommended font](#meslo-nerd-font-patched-for-powerlevel10k). *Optional but highly\n   recommended.*\n1. [Install Powerlevel10k](#installation) itself.\n1. Restart Zsh with `exec zsh`.\n1. Type `p10k configure` if the configuration wizard doesn't start automatically.\n\n## Features\n\n- [Configuration wizard](#configuration-wizard)\n- [Uncompromising performance](#uncompromising-performance)\n- [Powerlevel9k compatibility](#powerlevel9k-compatibility)\n- [Pure compatibility](#pure-compatibility)\n- [Instant prompt](#instant-prompt)\n- [Show on command](#show-on-command)\n- [Transient prompt](#transient-prompt)\n- [Current directory that just works](#current-directory-that-just-works)\n- [Extremely customizable](#extremely-customizable)\n- [Batteries included](#batteries-included)\n- [Extensible](#extensible)\n\n### Configuration wizard\n\nType `p10k configure` to access the builtin configuration wizard right from your terminal.\n\n\u003Cdetails>\n  \u003Csummary>Screen recording\u003C\u002Fsummary>\n\n  ![Powerlevel10k Configuration Wizard](\n    https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Fconfiguration-wizard.gif)\n\u003C\u002Fdetails>\n\nAll styles except [Pure](#pure-compatibility) are functionally equivalent. They display the same\ninformation and differ only in presentation.\n\nConfiguration wizard creates `~\u002F.p10k.zsh` based on your preferences. Additional prompt\ncustomization can be done by editing this file. It has plenty of comments to help you navigate\nthrough configuration options.\n\n*Tip*: Install [the recommended font](#meslo-nerd-font-patched-for-powerlevel10k) before\nrunning `p10k configure` to unlock all prompt styles.\n\n*FAQ:*\n\n- [What is the best prompt style in the configuration wizard?](\n    #what-is-the-best-prompt-style-in-the-configuration-wizard)\n- [What do different symbols in Git status mean?](\n    #what-do-different-symbols-in-git-status-mean)\n- [How do I change prompt colors?](#how-do-i-change-prompt-colors)\n\n*Troubleshooting*:\n\n- [Some prompt styles are missing from the configuration wizard](\n    #some-prompt-styles-are-missing-from-the-configuration-wizard).\n- [Question mark in prompt](#question-mark-in-prompt).\n- [Icons, glyphs or powerline symbols don't render](#icons-glyphs-or-powerline-symbols-dont-render).\n- [Sub-pixel imperfections around powerline symbols](\n    #sub-pixel-imperfections-around-powerline-symbols).\n- [Directory is difficult to see in prompt when using Rainbow style](\n    #directory-is-difficult-to-see-in-prompt-when-using-rainbow-style).\n\n### Uncompromising performance\n\nWhen you hit *ENTER*, the next prompt appears instantly. With Powerlevel10k there is no prompt lag.\nIf you install Cygwin on Raspberry Pi, `cd` into a Linux Git repository and activate enough prompt\nsegments to fill four prompt lines on both sides of the screen... wait, that's just crazy and no\none ever does that. Probably impossible, too. The point is, Powerlevel10k prompt is always fast, no\nmatter what you do!\n\n\u003Cdetails>\n  \u003Csummary>Screen recording\u003C\u002Fsummary>\n\n  ![Powerlevel10k Performance](\n    https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Fperformance.gif)\n\u003C\u002Fdetails>\n\nNote how the effect of every command is instantly reflected by the very next prompt.\n\n| Command                       | Prompt Indicator | Meaning                                                               |\n|-------------------------------|:----------------:|----------------------------------------------------------------------:|\n| `timew start hack linux`      | `⌚ hack linux`  | time tracking enabled in [timewarrior](https:\u002F\u002Ftimewarrior.net\u002F)      |\n| `touch x y`                   | `?2`             | 2 untracked files in the Git repo                                     |\n| `rm COPYING`                  | `!1`             | 1 unstaged change in the Git repo                                     |\n| `echo 3.7.3 >.python-version` | `🐍 3.7.3`       | the current python version in [pyenv](https:\u002F\u002Fgithub.com\u002Fpyenv\u002Fpyenv) |\n\nOther Zsh themes capable of displaying the same information either produce prompt lag or print\nprompt that doesn't reflect the current state of the system and then refresh it later. With\nPowerlevel10k you get fast prompt *and* up-to-date information.\n\n*FAQ*: [Is it really fast?](#is-it-really-fast)\n\n### Powerlevel9k compatibility\n\nPowerlevel10k understands all [Powerlevel9k](https:\u002F\u002Fgithub.com\u002FPowerlevel9k\u002Fpowerlevel9k)\nconfiguration parameters.\n\n\u003Cdetails>\n  \u003Csummary>Screen recording\u003C\u002Fsummary>\n\n  ![Powerlevel10k Compatibility with 9k](\n    https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002F9k-compatibility.gif)\n\u003C\u002Fdetails>\n\n[Migration](#installation) from Powerlevel9k to Powerlevel10k is a straightforward process. All\nyour `POWERLEVEL9K` configuration parameters will still work. Prompt will look the same as before\n([almost](\n  #does-powerlevel10k-always-render-exactly-the-same-prompt-as-powerlevel9k-given-the-same-config))\nbut it will be [much faster](#uncompromising-performance) ([certainly](#is-it-really-fast)).\n\n*FAQ*:\n\n- [I'm using Powerlevel9k with Oh My Zsh. How do I migrate?](\n    #im-using-powerlevel9k-with-oh-my-zsh-how-do-i-migrate)\n- [Does Powerlevel10k always render exactly the same prompt as Powerlevel9k given the same config?](\n    #does-powerlevel10k-always-render-exactly-the-same-prompt-as-powerlevel9k-given-the-same-config)\n- [What is the relationship between Powerlevel9k and Powerlevel10k?](\n    #What-is-the-relationship-between-powerlevel9k-and-powerlevel10k)\n\n### Pure compatibility\n\nPowerlevel10k can produce the same prompt as [Pure](https:\u002F\u002Fgithub.com\u002Fsindresorhus\u002Fpure). Type\n`p10k configure` and select *Pure* style.\n\n\u003Cdetails>\n  \u003Csummary>Screen recording\u003C\u002Fsummary>\n\n  ![Powerlevel10k Pure Style](\n    https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Fpure-style.gif)\n\u003C\u002Fdetails>\n\nYou can still use Powerlevel10k features such as [transient prompt](#transient-prompt) or\n[instant prompt](#instant-prompt) when sporting Pure style.\n\nTo customize prompt, edit `~\u002F.p10k.zsh`. Powerlevel10k doesn't recognize Pure configuration\nparameters, so you'll need to use `POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3` instead of\n`PURE_CMD_MAX_EXEC_TIME=3`, etc. All relevant parameters are in `~\u002F.p10k.zsh`. This file has\nplenty of comments to help you navigate through it.\n\n*FAQ:* [What is the best prompt style in the configuration wizard?](\n  #what-is-the-best-prompt-style-in-the-configuration-wizard)\n\n### \u003Ca name='what-is-instant-prompt'>\u003C\u002Fa>Instant prompt\n\nIf your `~\u002F.zshrc` loads many plugins, or perhaps just a few slow ones\n(for example, [pyenv](https:\u002F\u002Fgithub.com\u002Fpyenv\u002Fpyenv) or [nvm](https:\u002F\u002Fgithub.com\u002Fnvm-sh\u002Fnvm)), you\nmay have noticed that it takes some time for Zsh to start.\n\n\u003Cdetails>\n  \u003Csummary>Screen recording\u003C\u002Fsummary>\n\n  ![Powerlevel10k No Instant Prompt](\n    https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Fno-instant-prompt.gif)\n\u003C\u002Fdetails>\n\nPowerlevel10k can remove Zsh startup lag **even if it's not caused by a theme**.\n\n\u003Cdetails>\n  \u003Csummary>Screen recording\u003C\u002Fsummary>\n\n  ![Powerlevel10k Instant Prompt](\n    https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Finstant-prompt.gif)\n\u003C\u002Fdetails>\n\nThis feature is called *Instant Prompt*. You need to explicitly enable it through `p10k configure`\nor [manually](#how-do-i-configure-instant-prompt). It does what it says on the tin -- prints prompt\ninstantly upon Zsh startup allowing you to start typing while plugins are still loading.\n\nOther themes *increase* Zsh startup lag -- some by a lot, others by a just a little. Powerlevel10k\n*removes* it outright.\n\nIf you are curious about how *Instant Prompt* works, see\n[this section in zsh-bench](https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fzsh-bench#instant-prompt).\n\n*FAQ:* [How do I configure instant prompt?](#how-do-i-configure-instant-prompt)\n\n### Show on command\n\nThe behavior of some commands depends on global environment. For example, `kubectl run ...` runs an\nimage on the cluster defined by the current kubernetes context. If you frequently change context\nbetween \"prod\" and \"testing\", you might want to display the current context in Zsh prompt. If you do\nlikewise for AWS, Azure and Google Cloud credentials, prompt will get pretty crowded.\n\nEnter *Show On Command*. This feature makes prompt segments appear only when they are relevant to\nthe command you are currently typing.\n\n\u003Cdetails>\n  \u003Csummary>Screen recording\u003C\u002Fsummary>\n\n  ![Powerlevel10k Show On Command](\n    https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Fshow-on-command.gif)\n\u003C\u002Fdetails>\n\nConfigs created by `p10k configure` enable show on command for several prompt segments by default.\nHere's the relevant parameter for kubernetes context:\n\n```zsh\n# Show prompt segment \"kubecontext\" only when the command you are typing invokes one of these tools.\ntypeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens'\n```\n\nTo customize when different prompt segments are shown, open `~\u002F.p10k.zsh`, search for\n`SHOW_ON_COMMAND` and either remove these parameters to display affected segments unconditionally,\nor change their values.\n\n### Transient prompt\n\nWhen *Transient Prompt* is enabled through `p10k configure`, Powerlevel10k will trim down every\nprompt when accepting a command line.\n\n\u003Cdetails>\n  \u003Csummary>Screen recording\u003C\u002Fsummary>\n\n  ![Powerlevel10k Transient Prompt](\n    https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Ftransient-prompt.gif)\n\u003C\u002Fdetails>\n\nTransient prompt makes it much easier to copy-paste series of commands from the terminal scrollback.\n\n*Tip*: If you enable transient prompt, take advantage of two-line prompt. You'll get the benefit of\nextra space for typing commands without the usual drawback of reduced scrollback density. Sparse\nprompt (with an empty line before prompt) also works great in combination with transient prompt.\n\n### Current directory that just works\n\nThe current working directory is perhaps the most important prompt segment. Powerlevel10k goes to\ngreat length to highlight its important parts and to truncate it with the least loss of information\nwhen horizontal space gets scarce.\n\n\u003Cdetails>\n  \u003Csummary>Screen recording\u003C\u002Fsummary>\n\n  ![Powerlevel10k Directory Truncation](\n    https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Fdirectory-truncation.gif)\n\u003C\u002Fdetails>\n\nWhen the full directory doesn't fit, the leftmost segment gets truncated to its shortest unique\nprefix. In the screencast, `~\u002Fwork` becomes `~\u002Fwo`. It couldn't be truncated to `~\u002Fw` because it\nwould be ambiguous (there was `~\u002Fwireguard` when the session was recorded). The next segment --\n`projects` -- turns into `p` as there was nothing else that started with `p` in `~\u002Fwork\u002F`.\n\nDirectory segments are shown in one of three colors:\n\n- Truncated segments are bleak.\n- Important segments are bright and never truncated. These include the first and the last segment,\n  roots of Git repositories, etc.\n- Regular segments (not truncated but can be) use in-between color.\n\n*Tip*: If you copy-paste a truncated directory and hit *TAB*, it'll complete to the original.\n\n*Troubleshooting*: [Directory is difficult to see in prompt when using Rainbow style.](\n  #directory-is-difficult-to-see-in-prompt-when-using-rainbow-style)\n\n### Extremely customizable\n\nPowerlevel10k can be configured to look like any other Zsh theme out there.\n\n\u003Cdetails>\n  \u003Csummary>Screen recording\u003C\u002Fsummary>\n\n  ![Powerlevel10k Other Theme Emulation](\n    https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Fother-theme-emulation.gif)\n\u003C\u002Fdetails>\n\n[Pure](#pure-compatibility), [Powerlevel9k](#powerlevel9k-compatibility) and [robbyrussell](\n  #how-to-make-powerlevel10k-look-like-robbyrussell-oh-my-zsh-theme) emulations are built-in.\nTo emulate the appearance of other themes, you'll need to write a suitable configuration file. The\nbest way to go about it is to run `p10k configure`, select the style that is the closest to your\ngoal and then edit `~\u002F.p10k.zsh`.\n\nThe full range of Powerlevel10k appearance spans from spartan:\n\n![Powerlevel10k Spartan Style](\n  https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Fspartan-style.png)\n\nTo ~~ridiculous~~ extravagant:\n\n![Powerlevel10k Extravagant Style](\n  https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Fextravagant-style.png)\n\n### Batteries included\n\nPowerlevel10k comes with dozens of built-in high quality prompt segments that can display\ninformation from a variety of sources. When you run `p10k configure` and choose any style\nexcept [Pure](#pure-compatibility), many of these segments get enabled by\ndefault while others can be manually enabled by opening `~\u002F.p10k.zsh` and uncommenting them.\nYou can enable as many segments as you like. It won't slow down your prompt or Zsh startup.\n\n| Segment | Meaning |\n|--------:|---------|\n| `anaconda` | virtual environment from [conda](https:\u002F\u002Fconda.io\u002F) |\n| `asdf` | tool versions from [asdf](https:\u002F\u002Fgithub.com\u002Fasdf-vm\u002Fasdf) |\n| `aws` | [aws profile](https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Fuserguide\u002Fcli-configure-profiles.html) |\n| `aws_eb_env` | [aws elastic beanstalk](https:\u002F\u002Faws.amazon.com\u002Felasticbeanstalk\u002F) environment |\n| `azure` | [azure](https:\u002F\u002Fdocs.microsoft.com\u002Fen-us\u002Fcli\u002Fazure) account name |\n| `background_jobs` | presence of background jobs |\n| `battery` | internal battery state and charge level (yep, batteries *literally* included) |\n| `command_execution_time` | duration (wall time) of the last command |\n| `context` | user@hostname |\n| `cpu_arch` | CPU architecture |\n| `dir` | current working directory |\n| `direnv` | [direnv](https:\u002F\u002Fdirenv.net\u002F) status |\n| `disk_usage` | disk usage |\n| `dotnet_version` | [dotnet](https:\u002F\u002Fdotnet.microsoft.com) version |\n| `fvm` | flutter environment from [fvm](https:\u002F\u002Fgithub.com\u002Fleoafarias\u002Ffvm) |\n| `gcloud` | [google cloud](https:\u002F\u002Fcloud.google.com\u002F) cli account and project |\n| `goenv` | go environment from [goenv](https:\u002F\u002Fgithub.com\u002Fsyndbg\u002Fgoenv) |\n| `google_app_cred` | [google application credentials](https:\u002F\u002Fcloud.google.com\u002Fdocs\u002Fauthentication\u002Fproduction) |\n| `go_version` | [go](https:\u002F\u002Fgolang.org) version |\n| `haskell_stack` | haskell version from [stack](https:\u002F\u002Fhaskellstack.org\u002F) |\n| `ip` | IP address and bandwidth usage for a specified network interface |\n| `java_version` | [java](https:\u002F\u002Fwww.java.com\u002F) version |\n| `jenv` | java environment from [jenv](https:\u002F\u002Fgithub.com\u002Fjenv\u002Fjenv) |\n| `kubecontext` | current [kubernetes](https:\u002F\u002Fkubernetes.io\u002F) context |\n| `laravel_version` | [laravel php framework](https:\u002F\u002Flaravel.com\u002F) version |\n| `load` | CPU load |\n| `luaenv` | lua environment from [luaenv](https:\u002F\u002Fgithub.com\u002Fcehoffman\u002Fluaenv) |\n| `midnight_commander` | [midnight commander](https:\u002F\u002Fmidnight-commander.org\u002F) shell |\n| `nix_shell` | [nix shell](https:\u002F\u002Fnixos.org\u002Fnixos\u002Fnix-pills\u002Fdeveloping-with-nix-shell.html) indicator |\n| `nnn` | [nnn](https:\u002F\u002Fgithub.com\u002Fjarun\u002Fnnn) shell |\n| `lf` | [lf](https:\u002F\u002Fgithub.com\u002Fgokcehan\u002Flf) shell |\n| `chezmoi_shell` | [chezmoi](https:\u002F\u002Fwww.chezmoi.io\u002F) shell |\n| `nodeenv` | node.js environment from [nodeenv](https:\u002F\u002Fgithub.com\u002Fekalinin\u002Fnodeenv) |\n| `nodenv` | node.js environment from [nodenv](https:\u002F\u002Fgithub.com\u002Fnodenv\u002Fnodenv) |\n| `node_version` | [node.js](https:\u002F\u002Fnodejs.org\u002F) version |\n| `nordvpn` | [nordvpn](https:\u002F\u002Fnordvpn.com\u002F) connection status |\n| `nvm` | node.js environment from [nvm](https:\u002F\u002Fgithub.com\u002Fnvm-sh\u002Fnvm) |\n| `os_icon` | your OS logo (apple for macOS, swirl for debian, etc.) |\n| `package` | `name@version` from [package.json](https:\u002F\u002Fdocs.npmjs.com\u002Ffiles\u002Fpackage.json) |\n| `per_directory_history` | Oh My Zsh [per-directory-history](https:\u002F\u002Fgithub.com\u002Fjimhester\u002Fper-directory-history) local\u002Fglobal indicator |\n| `perlbrew` | perl version from [perlbrew](https:\u002F\u002Fgithub.com\u002Fgugod\u002FApp-perlbrew) |\n| `phpenv` | php environment from [phpenv](https:\u002F\u002Fgithub.com\u002Fphpenv\u002Fphpenv) |\n| `php_version` | [php](https:\u002F\u002Fwww.php.net\u002F) version |\n| `plenv` | perl environment from [plenv](https:\u002F\u002Fgithub.com\u002Ftokuhirom\u002Fplenv) |\n| `prompt_char` | multi-functional prompt symbol; changes depending on vi mode: `❯`, `❮`, `V`, `▶` for insert, command, visual and replace mode respectively; turns red on error |\n| `proxy` | system-wide http\u002Fhttps\u002Fftp proxy |\n| `public_ip` | public IP address |\n| `pyenv` | python environment from [pyenv](https:\u002F\u002Fgithub.com\u002Fpyenv\u002Fpyenv) |\n| `ram` | free RAM |\n| `ranger` | [ranger](https:\u002F\u002Fgithub.com\u002Franger\u002Franger) shell |\n| `yazi` | [yazi](https:\u002F\u002Fgithub.com\u002Fsxyazi\u002Fyazi) shell |\n| `rbenv` | ruby environment from [rbenv](https:\u002F\u002Fgithub.com\u002Frbenv\u002Frbenv) |\n| `rust_version` | [rustc](https:\u002F\u002Fwww.rust-lang.org) version |\n| `rvm` | ruby environment from [rvm](https:\u002F\u002Frvm.io) |\n| `scalaenv` | scala version from [scalaenv](https:\u002F\u002Fgithub.com\u002Fscalaenv\u002Fscalaenv) |\n| `status` | exit code of the last command |\n| `swap` | used swap |\n| `taskwarrior` | [taskwarrior](https:\u002F\u002Ftaskwarrior.org\u002F) task count |\n| `terraform` | [terraform](https:\u002F\u002Fwww.terraform.io) workspace |\n| `terraform_version` | [terraform](https:\u002F\u002Fwww.terraform.io) version |\n| `time` | current time |\n| `timewarrior` | [timewarrior](https:\u002F\u002Ftimewarrior.net\u002F) tracking status |\n| `todo` | [todo](https:\u002F\u002Fgithub.com\u002Ftodotxt\u002Ftodo.txt-cli) items |\n| `toolbox` | [toolbox](https:\u002F\u002Fgithub.com\u002Fcontainers\u002Ftoolbox) name |\n| `vcs` | Git repository status |\n| `vim_shell` | [vim](https:\u002F\u002Fwww.vim.org\u002F) shell (`:sh`) |\n| `virtualenv` | python environment from [venv](https:\u002F\u002Fdocs.python.org\u002F3\u002Flibrary\u002Fvenv.html) |\n| `vi_mode` | vi mode (you don't need this if you've enabled prompt_char) |\n| `vpn_ip` | virtual private network indicator |\n| `wifi` | WiFi speed |\n| `xplr` | [xplr](https:\u002F\u002Fgithub.com\u002Fsayanarijit\u002Fxplr) shell |\n\n### Extensible\n\nIf there is no prompt segment that does what you need, implement your own. Powerlevel10k provides\npublic API for defining segments that are as fast and as flexible as built-in ones.\n\n\u003Cdetails>\n  \u003Csummary>Screen recording\u003C\u002Fsummary>\n\n  ![Powerlevel10k Custom Segment](\n    https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Fcustom-segment.gif)\n\u003C\u002Fdetails>\n\nOn Linux you can fetch current CPU temperature by reading `\u002Fsys\u002Fclass\u002Fthermal\u002Fthermal_zone0\u002Ftemp`.\nThe screencast shows how to define a prompt segment to display this value. Once the segment is\ndefined, you can use it like any other segment. All standard customization parameters will work for\nit out of the box.\n\nType `p10k help segment` for reference.\n\n*Note*: If you modify `POWERLEVEL9K_*` parameters in an already initialized interactive shell (as\nopposed to editing `~\u002F.p10k.zsh`), the changes might not be immediately effective. To apply the\nmodifications, invoke `p10k reload`. Setting `POWERLEVEL9K_DISABLE_HOT_RELOAD=false` eliminates the\nnecessity for `p10k reload` but results in a marginally slower prompt.\n\n*Tip*: Prefix names of your own segments with `my_` to avoid clashes with future versions of\nPowerlevel10k.\n\n## Installation\n\n- [Manual](#manual) 👈 **choose this if confused or uncertain**\n- [Oh My Zsh](#oh-my-zsh)\n- [Prezto](#prezto)\n- [Zim](#zim)\n- [Antibody](#antibody)\n- [Antidote](#antidote)\n- [Antigen](#antigen)\n- [Zplug](#zplug)\n- [Zgen](#zgen)\n- [Zplugin](#zplugin)\n- [Zinit](#zinit)\n- [Zi](#zi)\n- [Zap](#zap)\n- [Homebrew](#homebrew)\n- [Arch Linux](#arch-linux)\n- [Alpine Linux](#alpine-linux)\n- [Fig](#fig)\n\n### Manual\n\n```zsh\ngit clone --depth=1 https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k.git ~\u002Fpowerlevel10k\necho 'source ~\u002Fpowerlevel10k\u002Fpowerlevel10k.zsh-theme' >>~\u002F.zshrc\n```\n\nUsers in China can use the official mirror on gitee.com for faster download.\u003Cbr>\n中国用户可以使用 gitee.com 上的官方镜像加速下载.\n\n```zsh\ngit clone --depth=1 https:\u002F\u002Fgitee.com\u002Fromkatv\u002Fpowerlevel10k.git ~\u002Fpowerlevel10k\necho 'source ~\u002Fpowerlevel10k\u002Fpowerlevel10k.zsh-theme' >>~\u002F.zshrc\n```\n\nThis is the simplest kind of installation and it works even if you are using a plugin manager. Just\nmake sure to disable the current theme in your plugin manager. See\n[troubleshooting](#cannot-make-powerlevel10k-work-with-my-plugin-manager) for help.\n\n### Oh My Zsh\n\n1. Clone the repository:\n    ```zsh\n    git clone --depth=1 https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k.git \"${ZSH_CUSTOM:-$HOME\u002F.oh-my-zsh\u002Fcustom}\u002Fthemes\u002Fpowerlevel10k\"\n    ```\n    Users in China can use the official mirror on gitee.com for faster download.\u003Cbr>\n    中国用户可以使用 gitee.com 上的官方镜像加速下载.\n\n    ```zsh\n    git clone --depth=1 https:\u002F\u002Fgitee.com\u002Fromkatv\u002Fpowerlevel10k.git \"${ZSH_CUSTOM:-$HOME\u002F.oh-my-zsh\u002Fcustom}\u002Fthemes\u002Fpowerlevel10k\"\n    ```\n2. Open `~\u002F.zshrc`, find the line that sets `ZSH_THEME`, and change its value to `\"powerlevel10k\u002Fpowerlevel10k\"`.\n\n### Prezto\n\nAdd `zstyle :prezto:module:prompt theme powerlevel10k` to `~\u002F.zpreztorc`.\n\n### Zim\n\nAdd `zmodule romkatv\u002Fpowerlevel10k --use degit` to `~\u002F.zimrc` and run `zimfw install`.\n\n### Antibody\n\nAdd `antibody bundle romkatv\u002Fpowerlevel10k` to `~\u002F.zshrc`.\n\n### Antidote\n\nAdd `romkatv\u002Fpowerlevel10k` to `~\u002F.zsh_plugins.txt`.\n\n### Antigen\n\nAdd `antigen theme romkatv\u002Fpowerlevel10k` to `~\u002F.zshrc`. Make sure you have `antigen apply`\nsomewhere after it.\n\n### Zplug\n\nAdd `zplug romkatv\u002Fpowerlevel10k, as:theme, depth:1` to `~\u002F.zshrc`.\n\n### Zgen\n\nAdd `zgen load romkatv\u002Fpowerlevel10k powerlevel10k` to `~\u002F.zshrc`.\n\n### Zplugin\n\nAdd `zplugin ice depth=1; zplugin light romkatv\u002Fpowerlevel10k` to `~\u002F.zshrc`.\n\nThe use of `depth=1` ice is optional. Other types of ice are neither recommended nor officially\nsupported by Powerlevel10k.\n\n### Zinit\n\nAdd `zinit ice depth=1; zinit light romkatv\u002Fpowerlevel10k` to `~\u002F.zshrc`.\n\nThe use of `depth=1` ice is optional. Other types of ice are neither recommended nor officially\nsupported by Powerlevel10k.\n\n### Zi\n\nAdd `zi ice depth=1; zi light romkatv\u002Fpowerlevel10k` to `~\u002F.zshrc`.\n\nThe use of `depth=1` ice is optional. Other types of ice are neither recommended nor officially\nsupported by Powerlevel10k.\n\n### Zap\n\nAdd `plug \"romkatv\u002Fpowerlevel10k\"` to `~\u002F.zshrc`.\n\n### Homebrew\n\n```zsh\nbrew install powerlevel10k\necho \"source $(brew --prefix)\u002Fshare\u002Fpowerlevel10k\u002Fpowerlevel10k.zsh-theme\" >>~\u002F.zshrc\n```\n\n### Arch Linux\n\n```zsh\nyay -S --noconfirm zsh-theme-powerlevel10k-git\necho 'source \u002Fusr\u002Fshare\u002Fzsh-theme-powerlevel10k\u002Fpowerlevel10k.zsh-theme' >>~\u002F.zshrc\n```\n\n[zsh-theme-powerlevel10k-git](https:\u002F\u002Faur.archlinux.org\u002Fpackages\u002Fzsh-theme-powerlevel10k-git\u002F)\nreferenced above is the official Powerlevel10k package.\n\n### Alpine Linux\n\n```zsh\napk add zsh zsh-theme-powerlevel10k\nmkdir -p ~\u002F.local\u002Fshare\u002Fzsh\u002Fplugins\nln -s \u002Fusr\u002Fshare\u002Fzsh\u002Fplugins\u002Fpowerlevel10k ~\u002F.local\u002Fshare\u002Fzsh\u002Fplugins\u002F\n```\n\n### Fig\n\nFollow the instructions on\n[this page](https:\u002F\u002Ffig.io\u002Fplugins\u002Fother\u002Fpowerlevel10k).\n\n## Configuration\n\n- [For new users](#for-new-users)\n- [For Powerlevel9k users](#for-powerlevel9k-users)\n\n### For new users\n\nOn the first run, Powerlevel10k [configuration wizard](#configuration-wizard) will ask you a few\nquestions and configure your prompt. If it doesn't trigger automatically, type `p10k configure`.\nConfiguration wizard creates `~\u002F.p10k.zsh` based on your preferences. Additional prompt\ncustomization can be done by editing this file. It has plenty of comments to help you navigate\nthrough configuration options.\n\n*FAQ*:\n\n- [What is the best prompt style in the configuration wizard?](\n    #what-is-the-best-prompt-style-in-the-configuration-wizard)\n- [What do different symbols in Git status mean?](\n    #what-do-different-symbols-in-git-status-mean)\n- [How do I change the format of Git status?](#how-do-i-change-the-format-of-git-status)\n- [How do I add username and\u002For hostname to prompt?](\n    #how-do-i-add-username-andor-hostname-to-prompt)\n- [How do I change prompt colors?](#how-do-i-change-prompt-colors)\n- [Why some prompt segments appear and disappear as I'm typing?](\n    #why-some-prompt-segments-appear-and-disappear-as-im-typing)\n\n*Troubleshooting*:\n\n- [Question mark in prompt](#question-mark-in-prompt).\n- [Icons, glyphs or powerline symbols don't render](#icons-glyphs-or-powerline-symbols-dont-render).\n- [Sub-pixel imperfections around powerline symbols](\n    #sub-pixel-imperfections-around-powerline-symbols).\n- [Directory is difficult to see in prompt when using Rainbow style](\n    #directory-is-difficult-to-see-in-prompt-when-using-rainbow-style).\n\n### For Powerlevel9k users\n\nIf you've been using Powerlevel9k before, **do not remove the configuration options**. Powerlevel10k\nwill pick them up and provide you with the same prompt UI you are used to. See\n[Powerlevel9k compatibility](#powerlevel9k-compatibility).\n\n*FAQ*:\n\n- [I'm using Powerlevel9k with Oh My Zsh. How do I migrate?](\n    #im-using-powerlevel9k-with-oh-my-zsh-how-do-i-migrate)\n- [What is the relationship between Powerlevel9k and Powerlevel10k?](\n    #what-is-the-relationship-between-powerlevel9k-and-powerlevel10k)\n- [Does Powerlevel10k always render exactly the same prompt as Powerlevel9k given the same config?](\n    #does-powerlevel10k-always-render-exactly-the-same-prompt-as-powerlevel9k-given-the-same-config)\n\n*Troubleshooting*: [Extra or missing spaces in prompt compared to Powerlevel9k](\n  #extra-or-missing-spaces-in-prompt-compared-to-powerlevel9k).\n\n## Fonts\n\nPowerlevel10k doesn't require custom fonts but can take advantage of them if they are available.\nIt works well with [Nerd Fonts](https:\u002F\u002Fgithub.com\u002Fryanoasis\u002Fnerd-fonts),\n[Source Code Pro](https:\u002F\u002Fgithub.com\u002Fadobe-fonts\u002Fsource-code-pro),\n[Font Awesome](https:\u002F\u002Ffontawesome.com\u002F), [Powerline](https:\u002F\u002Fgithub.com\u002Fpowerline\u002Ffonts), and even\nthe default system fonts. The full choice of style options is available only when using\n[Nerd Fonts](https:\u002F\u002Fgithub.com\u002Fryanoasis\u002Fnerd-fonts).\n\n👇 **Recommended font**: Meslo Nerd Font patched for Powerlevel10k. 👇\n\n### \u003Ca name='recommended-meslo-nerd-font-patched-for-powerlevel10k'>\u003C\u002Fa>\u003Ca name='font'>\u003C\u002Fa>Meslo Nerd Font patched for Powerlevel10k\n\nGorgeous monospace font designed by Jim Lyles for Bitstream, customized by the same for Apple,\nfurther customized by André Berg, and finally patched by yours truly with customized scripts\noriginally developed by Ryan L McIntyre of Nerd Fonts. Contains all glyphs and symbols that\nPowerlevel10k may need. Battle-tested in dozens of different terminals on all major operating\nsystems.\n\n*FAQ*: [How was the recommended font created?](#how-was-the-recommended-font-created)\n\n#### Automatic font installation\n\nIf you are using iTerm2 or Termux, `p10k configure` can install the recommended font for you.\nSimply answer `Yes` when asked whether to install *Meslo Nerd Font*.\n\nIf you are using a different terminal, proceed with manual font installation. 👇\n\n#### Manual font installation\n\n1. Download these four ttf files:\n   - [MesloLGS NF Regular.ttf](\n       https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fraw\u002Fmaster\u002FMesloLGS%20NF%20Regular.ttf)\n   - [MesloLGS NF Bold.ttf](\n       https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fraw\u002Fmaster\u002FMesloLGS%20NF%20Bold.ttf)\n   - [MesloLGS NF Italic.ttf](\n       https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fraw\u002Fmaster\u002FMesloLGS%20NF%20Italic.ttf)\n   - [MesloLGS NF Bold Italic.ttf](\n       https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fraw\u002Fmaster\u002FMesloLGS%20NF%20Bold%20Italic.ttf)\n1. Double-click on each file and click \"Install\". This will make `MesloLGS NF` font available to all\n   applications on your system.\n1. Configure your terminal to use this font:\n   - **iTerm2**: Type `p10k configure` and answer `Yes` when asked whether to install\n     *Meslo Nerd Font*. Alternatively, open *iTerm2 → Preferences → Profiles → Text* and set *Font* to\n     `MesloLGS NF`.\n   - **Apple Terminal**: Open *Terminal → Preferences → Profiles → Text*, click *Change* under *Font*\n     and select `MesloLGS NF` family.\n   - **Hyper**: Open *Hyper → Edit → Preferences* and change the value of `fontFamily` under\n     `module.exports.config` to `MesloLGS NF`.\n   - **Visual Studio Code**: Open *File → Preferences → Settings* (PC) or\n     *Code → Preferences → Settings* (Mac), enter `terminal.integrated.fontFamily` in the search box at\n     the top of *Settings* tab and set the value below to `MesloLGS NF`.\n     Consult [this screenshot](\n       https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002F389133fb8c9a2347929a23702ce3039aacc46c3d\u002Fvisual-studio-code-font-settings.jpg)\n     to see how it should look like or see [this issue](\n       https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k\u002Fissues\u002F671) for extra information.\n\n     Note that software installed via [Snap](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FSnap_\\(software\\)) is\n     unable to use system fonts. If you've install Visual Studio Code via Snap, remove it by running\n     `sudo snap remove code` and install the official `.deb` build from the\n     [Visual Studio Code website](https:\u002F\u002Fcode.visualstudio.com\u002FDownload).\n   - **GNOME Terminal** (the default Ubuntu terminal): Open *Terminal → Preferences* and click on the\n     selected profile under *Profiles*. Check *Custom font* under *Text Appearance* and select\n     `MesloLGS NF Regular`.\n   - **Konsole**: Open *Settings → Edit Current Profile → Appearance*, click *Select Font* and select\n     `MesloLGS NF Regular`.\n   - **Tilix**: Open *Tilix → Preferences* and click on the selected profile under *Profiles*. Check\n     *Custom font* under *Text Appearance* and select `MesloLGS NF Regular`.\n   - **Windows Console Host** (the old thing): Click the icon in the top left corner, then\n     *Properties → Font* and set *Font* to `MesloLGS NF`.\n   - **Windows Terminal** by Microsoft (the new thing): Open *Settings* (\u003Ckbd>Ctrl+,\u003C\u002Fkbd>), click\n     either on the selected profile under *Profiles* or on *Defaults*, click *Appearance* and set\n     *Font face* to `MesloLGS NF`.\n   - **Conemu**: Open *Setup → General → Fonts* and set *Main console font* to `MesloLGS NF`.\n   - **IntelliJ** (and other IDEs by Jet Brains): Open *IDE → Edit → Preferences → Editor →\n     Color Scheme → Console Font*. Select *Use console font instead of the default* and set the font\n     name to `MesloLGS NF`.\n   - **Termux**: Type `p10k configure` and answer `Yes` when asked whether to install\n     *Meslo Nerd Font*.\n   - **Blink**: Type `config`, go to *Appearance*, tap *Add a new font*, tap *Open Gallery*, select\n     *MesloLGS NF.css*, tap *import* and type `exit` in the home view to reload the font.\n   - **Tabby** (formerly **Terminus**): Open *Settings → Appearance* and set *Font* to `MesloLGS NF`.\n   - **Terminator**: Open *Preferences* using the context menu. Under *Profiles* select the *General*\n     tab (should be selected already), uncheck *Use the system fixed width font* (if not already)\n     and select `MesloLGS NF Regular`. Exit the Preferences dialog by clicking *Close*.\n   - **Guake**: Right Click on an open terminal and open *Preferences*. Under *Appearance*\n     tab, uncheck *Use the system fixed width font* (if not already) and select `MesloLGS NF Regular`.\n     Exit the Preferences dialog by clicking *Close*.\n   - **MobaXterm**: Open *Settings* → *Configuration* → *Terminal* → (under *Terminal look and feel*)\n     and change *Font* to `MesloLGS NF`. If you have *sessions*, you need to change the font in each\n     of them through *Settings* → right click on an individual session → *Edit Session* → *Terminal\n     Settings* → *Font settings*.\n   - **Asbrú Connection Manager**: Open *Preferences → Local Shell Options → Look and Feel*, enable\n     *Use these personal options* and change *Font:* under *Terminal UI* to `MesloLGS NF Regular`.\n     To change the font for the remote host connections, go to *Preferences → Terminal Options →\n     Look and Feel* and change *Font:* under *Terminal UI* to `MesloLGS NF Regular`.\n   - **Warp**: Open Warp and Navigate to *Settings* then *Appearance*.  Scroll down to *Text* Section\n     and under *\"Terminal Font\"*, select the `MesloLGS NF` font.\n   - **WSLtty**: Right click on an open terminal and then on *Options*. In the *Text* section, under\n     *Font*, click *\"Select...\"* and set Font to `MesloLGS NF Regular`.\n   - **Yakuake**: Click *≡* → *Manage Profiles* → *New* → *Appearance*. Click *Choose* next to the\n     *Font* dropdown, select `MesloLGS NF` and click *OK*. Click *OK* to save the profile. Select the\n     new profile and click *Set as Default*.\n   - **Alacritty**: Create or open `~\u002F.config\u002Falacritty\u002Falacritty.toml` and add the following\n     section to it:\n     ```toml\n     [font.normal]\n     family = \"MesloLGS NF\"\n     ```\n   - **foot**: Create or open `~\u002F.config\u002Ffoot\u002Ffoot.ini` and add the following section to it:\n     ```ini\n     font=MesloLGS NF:size=12\n     ```\n   - **kitty**: Create or open `~\u002F.config\u002Fkitty\u002Fkitty.conf` and add the following line to it:\n      ```text\n      font_family MesloLGS NF\n      ```\n      Restart kitty by closing all sessions and opening a new session.\n   - **puTTY**: Set *Window* → *Appearance* → *Font* to `MesloLGS NF`. Requires puTTY\n     version >= 0.75.\n   - **WezTerm**: Create or open `$HOME\u002F.config\u002Fwezterm\u002Fwezterm.lua` and add the following:\n     ```lua\n     local wezterm = require 'wezterm';\n     return {\n         font = wezterm.font(\"MesloLGS NF\"),\n     }\n     ```\n     If the file already exists, only add the line with the font to the existing return.\n     Also add the first line if it is not already present.\n   - **urxvt**: Create or open `~\u002F.Xresources` and add the following line to it:\n     ```text\n     URxvt.font: xft:MesloLGS NF:size=11\n     ```\n     You can adjust the font size to your preference. After changing the config run\n     `xrdb ~\u002F.Xresources` to reload it. The new config is applied to all new terminals.\n   - **xterm**: Create or open `~\u002F.Xresources` and add the following line to it:\n     ```text\n     xterm*faceName: MesloLGS NF\n     ```\n     After changing the config run `xrdb ~\u002F.Xresources` to reload it. The new config is applied to\n     all new terminals.\n   - **Zed**: Open `~\u002F.config\u002Fzed\u002Fsettings.json` and set `terminal.font_family` to `\"MesloLGS NF\"`.\n     ```jsonc\n     {\n       \"terminal\": {\n         \"font_family\": \"MesloLGS NF\"\n       },\n       \u002F\u002F Other settings.\n     }\n     ```\n   - Crostini (Linux on Chrome OS): Open\n     chrome-untrusted:\u002F\u002Fterminal\u002Fhtml\u002Fnassh_preferences_editor.html, set *Text font family* to\n      `'MesloLGS NF'` (including the quotes) and *Custom CSS (inline text)* to the following:\n     ```css\n     @font-face {\n      font-family: \"MesloLGS NF\";\n      src: url(\"https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002FMesloLGS%20NF%20Regular.ttf\");\n      font-weight: normal;\n      font-style: normal;\n     }\n     @font-face {\n         font-family: \"MesloLGS NF\";\n         src: url(\"https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002FMesloLGS%20NF%20Bold.ttf\");\n         font-weight: bold;\n         font-style: normal;\n     }\n     @font-face {\n         font-family: \"MesloLGS NF\";\n         src: url(\"https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002FMesloLGS%20NF%20Italic.ttf\");\n         font-weight: normal;\n         font-style: italic;\n     }\n     @font-face {\n         font-family: \"MesloLGS NF\";\n         src: url(\"https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002FMesloLGS%20NF%20Bold%20Italic.ttf\");\n         font-weight: bold;\n         font-style: italic;\n     }\n     ```\n     **_CAVEAT_**: If you open the normal terminal preferences these settings will be overwritten.\n   - **Deepin Terminal**: Create or open `~\u002F.config\u002Fdeepin\u002Fdeepin-terminal\u002Fconfig.conf` and add the following section\n     to it:\n     ```ini\n     [basic.interface.font]\n     value = \"MesloLGS NF\"\n     ```\n   - **Ghostty**: Open *Menu → Open Configuration* (Linux) or *Ghostty → Settings...* (Mac) and add\n     the following line:\n     ```text\n     font-family = \"MesloLGS NF\"\n     ```\n1. Run `p10k configure` to generate a new `~\u002F.p10k.zsh`. The old config may work\n   incorrectly with the new font.\n\n_Using a different terminal and know how to set the font for it? Share your knowledge by sending a\nPR to expand the list!_\n\n## Try it in Docker\n\nTry Powerlevel10k in Docker. You can safely make any changes to the file system while trying out\nthe theme. Once you exit Zsh, the container is deleted.\n\n```zsh\ndocker run -e TERM -e COLORTERM -e LC_ALL=C.UTF-8 -it --rm alpine sh -uec '\n  apk add git zsh nano vim\n  git clone --depth=1 https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k.git ~\u002Fpowerlevel10k\n  echo \"source ~\u002Fpowerlevel10k\u002Fpowerlevel10k.zsh-theme\" >>~\u002F.zshrc\n  cd ~\u002Fpowerlevel10k\n  exec zsh'\n```\n\n*Tip*: Install [the recommended font](#meslo-nerd-font-patched-for-powerlevel10k) before\nrunning the Docker command to get access to all prompt styles.\n\n*Tip*: Run `p10k configure` while in Docker to try a different prompt style.\n\n## License\n\nPowerlevel10k is released under the\n[MIT license](https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k\u002Fblob\u002Fmaster\u002FLICENSE).\n\n## FAQ\n\n- [How do I update Powerlevel10k?](#how-do-i-update-powerlevel10k)\n- [How do I uninstall Powerlevel10k?](#how-do-i-uninstall-powerlevel10k)\n- [How do I install Powerlevel10k on a machine without Internet access?](#how-do-i-install-powerlevel10k-on-a-machine-without-internet-access)\n- [Where can I ask for help and report bugs?](#where-can-i-ask-for-help-and-report-bugs)\n- [Which aspects of shell and terminal does Powerlevel10k affect?](#which-aspects-of-shell-and-terminal-does-powerlevel10k-affect)\n- [I'm using Powerlevel9k with Oh My Zsh. How do I migrate?](#im-using-powerlevel9k-with-oh-my-zsh-how-do-i-migrate)\n- [Is it really fast?](#is-it-really-fast)\n- [How do I configure instant prompt?](#how-do-i-configure-instant-prompt)\n- [How do I initialize direnv when using instant prompt?](#how-do-i-initialize-direnv-when-using-instant-prompt)\n- [How do I export GPG_TTY when using instant prompt?](#how-do-i-export-gpg_tty-when-using-instant-prompt)\n- [What do different symbols in Git status mean?](#what-do-different-symbols-in-git-status-mean)\n- [How do I change the format of Git status?](#how-do-i-change-the-format-of-git-status)\n- [Why is Git status from `$HOME\u002F.git` not displayed in prompt?](#why-is-git-status-from-homegit-not-displayed-in-prompt)\n- [Why does Git status sometimes appear grey and then gets colored after a short period of time?](#why-does-git-status-sometimes-appear-grey-and-then-gets-colored-after-a-short-period-of-time)\n- [How do I add username and\u002For hostname to prompt?](#how-do-i-add-username-andor-hostname-to-prompt)\n- [Why some prompt segments appear and disappear as I'm typing?](#why-some-prompt-segments-appear-and-disappear-as-im-typing)\n- [How do I change prompt colors?](#how-do-i-change-prompt-colors)\n- [Why does Powerlevel10k spawn extra processes?](#why-does-powerlevel10k-spawn-extra-processes)\n- [Are there configuration options that make Powerlevel10k slow?](#are-there-configuration-options-that-make-powerlevel10k-slow)\n- [Is Powerlevel10k fast to load?](#is-powerlevel10k-fast-to-load)\n- [What is the relationship between Powerlevel9k and Powerlevel10k?](#what-is-the-relationship-between-powerlevel9k-and-powerlevel10k)\n- [Does Powerlevel10k always render exactly the same prompt as Powerlevel9k given the same config?](#does-powerlevel10k-always-render-exactly-the-same-prompt-as-powerlevel9k-given-the-same-config)\n- [What is the best prompt style in the configuration wizard?](#what-is-the-best-prompt-style-in-the-configuration-wizard)\n- [How to make Powerlevel10k look like robbyrussell Oh My Zsh theme?](#how-to-make-powerlevel10k-look-like-robbyrussell-oh-my-zsh-theme)\n- [Can prompts for completed commands display error status for *those* commands instead of the commands preceding them?](#can-prompts-for-completed-commands-display-error-status-for-those-commands-instead-of-the-commands-preceding-them)\n- [What is the minimum supported Zsh version?](#what-is-the-minimum-supported-zsh-version)\n- [How were these screenshots and animated gifs created?](#how-were-these-screenshots-and-animated-gifs-created)\n- [How was the recommended font created?](#how-was-the-recommended-font-created)\n- [How to package Powerlevel10k for distribution?](#how-to-package-powerlevel10k-for-distribution)\n\n### How do I update Powerlevel10k?\n\nThe command to update Powerlevel10k depends on how it was installed.\n\n| Installation                  | Update command                                              |\n|-------------------------------|-------------------------------------------------------------|\n| [Manual](#manual)             | `git -C ~\u002Fpowerlevel10k pull`                               |\n| [Oh My Zsh](#oh-my-zsh)       | `git -C \"${ZSH_CUSTOM:-$HOME\u002F.oh-my-zsh\u002Fcustom}\u002Fthemes\u002Fpowerlevel10k\" pull` |\n| [Prezto](#prezto)             | `zprezto-update`                                            |\n| [Zim](#zim)                   | `zimfw update`                                              |\n| [Antigen](#antigen)           | `antigen update`                                            |\n| [Antidote](#antidote)         | `antidote update`                                           |\n| [Zplug](#zplug)               | `zplug update`                                              |\n| [Zgen](#zgen)                 | `zgen update`                                               |\n| [Zplugin](#zplugin)           | `zplugin update`                                            |\n| [Zinit](#zinit)               | `zinit update`                                              |\n| [Zi](#zi)                     | `zi update`                                                 |\n| [Zap](#zap)                   | `zap update`                                              |\n| [Homebrew](#homebrew)         | `brew update && brew upgrade`                               |\n| [Arch Linux](#arch-linux)     | `yay -S --noconfirm zsh-theme-powerlevel10k-git`            |\n| [Alpine Linux](#alpine-linux) | `apk update && apk upgrade`                                 |\n\n**IMPORTANT**: Restart Zsh after updating Powerlevel10k. [Do not use `source ~\u002F.zshrc`](\n  #weird-things-happen-after-typing-source-zshrc).\n\n### How do I uninstall Powerlevel10k?\n\n1. Remove all references to \"p10k\" from `~\u002F.zshrc`. You might have this snippet at the top:\n   ```zsh\n   if [[ -r \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\u002Fp10k-instant-prompt-${(%):-%n}.zsh\" ]]; then\n     source \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\u002Fp10k-instant-prompt-${(%):-%n}.zsh\"\n   fi\n   ```\n   And this at the bottom:\n   ```zsh\n   [[ ! -f ~\u002F.p10k.zsh ]] || source ~\u002F.p10k.zsh\n   ```\n   These are added by the [configuration wizard](#configuration-wizard). Remove them.\n2. Remove all references to \"powerlevel10k\" from `~\u002F.zshrc`, `~\u002F.zpreztorc` and `~\u002F.zimrc` (some\n   of these files may be missing -- this is normal). These references have been added manually by\n   yourself when installing Powerlevel10k. Refer to the [installation instructions](#installation)\n   if you need a reminder.\n3. Verify that all references to \"p10k\" and \"powerlevel10k\" are gone from `~\u002F.zshrc`, `~\u002F.zpreztorc`\n   and `~\u002F.zimrc`.\n   ```zsh\n   grep -E 'p10k|powerlevel10k' ~\u002F.zshrc ~\u002F.zpreztorc ~\u002F.zimrc 2>\u002Fdev\u002Fnull\n   ```\n   If this command produces output, there are still references to \"p10k\" or \"powerlevel10k\". You\n   need to remove them.\n4. Delete Powerlevel10k configuration file. This file is created by the\n   [configuration wizard](#configuration-wizard) and may contain manual edits by yourself.\n   ```zsh\n   rm -f ~\u002F.p10k.zsh\n   ```\n5. Delete Powerlevel10k source files. These files have been downloaded when you've installed\n   Powerlevel10k. The command to delete them depends on which installation method you'd chosen.\n   Refer to the [installation instructions](#installation) if you need a reminder.\n\n   | Installation                  | Uninstall command                                                |\n   |-------------------------------|------------------------------------------------------------------|\n   | [Manual](#manual)             | `rm -rf ~\u002Fpowerlevel10k`                                         |\n   | [Oh My Zsh](#oh-my-zsh)       | `rm -rf -- \"${ZSH_CUSTOM:-$HOME\u002F.oh-my-zsh\u002Fcustom}\u002Fthemes\u002Fpowerlevel10k\"` |\n   | [Prezto](#prezto)             | n\u002Fa                                                              |\n   | [Zim](#zim)                   | `zimfw uninstall`                                                |\n   | [Antigen](#antigen)           | `antigen purge romkatv\u002Fpowerlevel10k`                            |\n   | [Antidote](#antidote)         | `antidote purge romkatv\u002Fpowerlevel10k`                           |\n   | [Zplug](#zplug)               | `zplug clean`                                                    |\n   | [Zgen](#zgen)                 | `zgen reset`                                                     |\n   | [Zplugin](#zplugin)           | `zplugin delete romkatv\u002Fpowerlevel10k`                           |\n   | [Zinit](#zinit)               | `zinit delete romkatv\u002Fpowerlevel10k`                             |\n   | [Zi](#zi)                     | `zi delete romkatv\u002Fpowerlevel10k`                                |\n   | [Zap](#zap)                   | `zsh -ic 'zap clean'`                                            |\n   | [Homebrew](#homebrew)         | `brew uninstall powerlevel10k`                                   |\n   | [Arch Linux](#arch-linux)     | `yay -R --noconfirm zsh-theme-powerlevel10k-git`                 |\n   | [Alpine Linux](#alpine-linux) | `apk del zsh-theme-powerlevel10k`                                |\n6. Restart Zsh. [Do not use `source ~\u002F.zshrc`](#weird-things-happen-after-typing-source-zshrc).\n7. Delete Powerlevel10k cache files.\n   ```zsh\n   rm -rf -- \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\"\u002Fp10k-*(N) \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\"\u002Fgitstatus\n   ```\n\n### How do I install Powerlevel10k on a machine without Internet access?\n\n1. Run this command on the machine without Internet access:\n   ```sh\n   uname -sm | tr '[A-Z]' '[a-z]'\n   ```\n2. Run these commands on a machine connected to the Internet after replacing the value of\n   `target_uname` with the output of the previous command:\n   ```sh\n   target_uname=\"replace this with the output of the previous command\"\n   git clone --depth=1 https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k.git ~\u002Fpowerlevel10k\n   GITSTATUS_CACHE_DIR=\"$HOME\"\u002Fpowerlevel10k\u002Fgitstatus\u002Fusrbin ~\u002Fpowerlevel10k\u002Fgitstatus\u002Finstall -f -s \"${target_uname% *}\" -m \"${target_uname#* }\"\n   ```\n3. Copy `~\u002Fpowerlevel10k` from the machine connected to the Internet to the one without Internet\n   access.\n4. Add `source ~\u002Fpowerlevel10k\u002Fpowerlevel10k.zsh-theme` to `~\u002F.zshrc` on the machine without\n   Internet access:\n   ```zsh\n   echo 'source ~\u002Fpowerlevel10k\u002Fpowerlevel10k.zsh-theme' >>~\u002F.zshrc\n   ```\n5. If `~\u002F.zshrc` on the machine without Internet access sets `ZSH_THEME`, remove that line.\n   ```zsh\n   sed -i.bak '\u002F^ZSH_THEME=\u002Fd' ~\u002F.zshrc\n   ```\n\nTo update, remove `~\u002Fpowerlevel10k` on both machines and repeat steps 1-3.\n\n### Where can I ask for help and report bugs?\n\nThe best way to ask for help and to report bugs is to [open an issue](\n  https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k\u002Fissues).\n\n[Gitter](\n  https:\u002F\u002Fgitter.im\u002Fpowerlevel10k\u002Fcommunity?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)\nis another option.\n\nIf all else fails, email roman.perepelitsa@gmail.com.\n\nIf necessary, encrypt your communication with [this PGP key](\n  https:\u002F\u002Fapi.github.com\u002Fusers\u002Fromkatv\u002Fgpg_keys).\n\n### Which aspects of shell and terminal does Powerlevel10k affect?\n\nPowerlevel10k defines prompt and nothing else. It sets [prompt-related options](\n  http:\u002F\u002Fzsh.sourceforge.net\u002FDoc\u002FRelease\u002FOptions.html#Prompting), and parameters `PS1` and `RPS1`.\n\n![Prompt Highlight](\n  https:\u002F\u002Fraw.githubusercontent.com\u002Fromkatv\u002Fpowerlevel10k-media\u002Fmaster\u002Fprompt-highlight.png)\n\nEverything within the highlighted areas on the screenshot is produced by Powerlevel10k.\nPowerlevel10k has no control over the terminal content or colors outside these areas.\n\nPowerlevel10k does not affect:\n\n- Terminal window\u002Ftab title.\n- Colors used by `ls`.\n- The behavior of `git` command.\n- The content and style of \u003Ckbd>Tab\u003C\u002Fkbd> completions.\n- Command line colors (syntax highlighting, autosuggestions, etc.).\n- Key bindings.\n- Aliases.\n- Prompt parameters other than `PS1` and `RPS1`.\n- Zsh options other than those [related to prompt](\n    http:\u002F\u002Fzsh.sourceforge.net\u002FDoc\u002FRelease\u002FOptions.html#Prompting).\n- The set of available commands. Powerlevel10k does not install any new commands\n  with the only exception of `p10k`.\n\n### I'm using Powerlevel9k with Oh My Zsh. How do I migrate?\n\n1. Run this command:\n```zsh\n# Add powerlevel10k to the list of Oh My Zsh themes.\ngit clone --depth=1 https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k.git \"${ZSH_CUSTOM:-$HOME\u002F.oh-my-zsh\u002Fcustom}\u002Fthemes\u002Fpowerlevel10k\"\n# Replace ZSH_THEME=\"powerlevel9k\u002Fpowerlevel9k\" with ZSH_THEME=\"powerlevel10k\u002Fpowerlevel10k\".\nsed -i.bak 's\u002Fpowerlevel9k\u002Fpowerlevel10k\u002Fg' ~\u002F.zshrc\n# Restart Zsh.\nexec zsh\n```\n2. *Optional but highly recommended:*\n   1. Install [the recommended font](#meslo-nerd-font-patched-for-powerlevel10k).\n   1. Type `p10k configure` and choose your favorite prompt style.\n\n*Related:*\n  - [Powerlevel9k compatibility.](#powerlevel9k-compatibility)\n  - [Does Powerlevel10k always render exactly the same prompt as Powerlevel9k given the same config?](\n      #does-powerlevel10k-always-render-exactly-the-same-prompt-as-powerlevel9k-given-the-same-config)\n  - [Extra or missing spaces in prompt compared to Powerlevel9k.](\n      #extra-or-missing-spaces-in-prompt-compared-to-powerlevel9k)\n  - [Configuration wizard.](#configuration-wizard)\n\n### Is it really fast?\n\nYes. See [zsh-bench](https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fzsh-bench) or a direct comparison with\n[Powerlevel9k](https:\u002F\u002Fasciinema.org\u002Fa\u002FNHRjK3BMePw66jtRVY2livHwZ) and\n[Spaceship](https:\u002F\u002Fasciinema.org\u002Fa\u002F253094).\n\n### \u003Ca name='how-do-i-enable-instant-prompt'>\u003C\u002Fa>How do I configure instant prompt?\n\nSee [instant prompt](#instant-prompt) to learn about instant prompt. This section explains how you\ncan enable and configure it and lists caveats that you should be aware of.\n\nInstant prompt can be enabled either through `p10k configure` or by manually adding the following\ncode snippet at the top of `~\u002F.zshrc`:\n\n```zsh\n# Enable Powerlevel10k instant prompt. Should stay close to the top of ~\u002F.zshrc.\n# Initialization code that may require console input (password prompts, [y\u002Fn]\n# confirmations, etc.) must go above this block; everything else may go below.\nif [[ -r \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\u002Fp10k-instant-prompt-${(%):-%n}.zsh\" ]]; then\n  source \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\u002Fp10k-instant-prompt-${(%):-%n}.zsh\"\nfi\n```\n\nIt's important that you copy the lines verbatim. Don't replace `source` with something else, don't\ncall `zcompile`, don't redirect output, etc.\n\nWhen instant prompt is enabled, for the duration of Zsh initialization standard input is redirected\nto `\u002Fdev\u002Fnull` and standard output with standard error are redirected to a temporary file. Once Zsh\nis fully initialized, standard file descriptors are restored and the content of the temporary file\nis printed out.\n\nWhen using instant prompt, you should carefully check any output that appears on Zsh startup as it\nmay indicate that initialization has been altered, or perhaps even broken, by instant prompt.\nInitialization code that may require console input, such as asking for a keyring password or for a\n*[y\u002Fn]* confirmation, must be moved above the instant prompt preamble in `~\u002F.zshrc`. Initialization\ncode that merely prints to console but never reads from it will work correctly with instant prompt,\nalthough output that normally has colors may appear uncolored. You can either leave it be, suppress\nthe output, or move it above the instant prompt preamble.\n\nHere's an example of `~\u002F.zshrc` that breaks when instant prompt is enabled:\n\n```zsh\nif [[ -r \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\u002Fp10k-instant-prompt-${(%):-%n}.zsh\" ]]; then\n  source \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\u002Fp10k-instant-prompt-${(%):-%n}.zsh\"\nfi\n\nkeychain id_rsa --agents ssh  # asks for password\nchatty-script                 # spams to stdout even when everything is fine\n# ...\n```\n\nFixed version:\n\n```zsh\nkeychain id_rsa --agents ssh  # moved before instant prompt\n\n# OK to perform console I\u002FO before this point.\nif [[ -r \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\u002Fp10k-instant-prompt-${(%):-%n}.zsh\" ]]; then\n  source \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\u002Fp10k-instant-prompt-${(%):-%n}.zsh\"\nfi\n# From this point on, until zsh is fully initialized, console input won't work and\n# console output may appear uncolored.\n\nchatty-script >\u002Fdev\u002Fnull      # spam output suppressed\n# ...\n```\n\nIf `POWERLEVEL9K_INSTANT_PROMPT` is unset or set to `verbose`, Powerlevel10k will print a warning\nwhen it detects console output during initialization to bring attention to potential issues. You can\nsilence this warning (without suppressing console output) with `POWERLEVEL9K_INSTANT_PROMPT=quiet`.\nThis is recommended if some initialization code in `~\u002F.zshrc` prints to console and it's infeasible\nto move it above the instant prompt preamble or to suppress its output. You can completely disable\ninstant prompt with `POWERLEVEL9K_INSTANT_PROMPT=off`. Do this if instant prompt breaks Zsh\ninitialization and you don't know how to fix it.\n\nThe value of `POWERLEVEL9K_INSTANT_PROMPT` can be changed by running `p10k configure` and selecting\nthe appropriate option on the *Instant Prompt* screen. Alternatively, you can search for\n`POWERLEVEL9K_INSTANT_PROMPT` in the existing `~\u002F.p10k.zsh` and change its value there.\n\n*Note*: Instant prompt requires Zsh >= 5.4. It's OK to enable it even when using an older version of\nZsh but it won't do anything.\n\n*FAQ*:\n\n- [How do I initialize direnv when using instant prompt?](\n    #how-do-i-initialize-direnv-when-using-instant-prompt)\n- [How do I export GPG_TTY when using instant prompt?](\n    #how-do-i-export-gpg_tty-when-using-instant-prompt)\n\n### How do I initialize direnv when using instant prompt?\n\nIf you've enabled [instant prompt](#instant-prompt), you should have these lines at the top of\n`~\u002F.zshrc`:\n\n```zsh\nif [[ -r \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\u002Fp10k-instant-prompt-${(%):-%n}.zsh\" ]]; then\n  source \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\u002Fp10k-instant-prompt-${(%):-%n}.zsh\"\nfi\n```\n\nTo initialize direnv you need to add one line above that block and one line below it.\n\n```zsh\n(( ${+commands[direnv]} )) && emulate zsh -c \"$(direnv export zsh)\"\n\nif [[ -r \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\u002Fp10k-instant-prompt-${(%):-%n}.zsh\" ]]; then\n  source \"${XDG_CACHE_HOME:-$HOME\u002F.cache}\u002Fp10k-instant-prompt-${(%):-%n}.zsh\"\nfi\n\n(( ${+commands[direnv]} )) && emulate zsh -c \"$(direnv hook zsh)\"\n```\n\n*Related*: [How do I export GPG_TTY when using instant prompt?](\n  #how-do-i-export-gpg_tty-when-using-instant-prompt)\n\n### How do I export GPG_TTY when using instant prompt?\n\nYou can export `GPG_TTY` like this anywhere in `~\u002F.zshrc`:\n\n```zsh\nexport GPG_TTY=$TTY\n```\n\nThis works whether you are using [instant prompt](#instant-prompt) or not. It works even if you\naren't using powerlevel10k. As an extra bonus, it's much faster than the commonly used\n`export GPG_TTY=$(tty)`.\n\n*Related*: [How do I initialize direnv when using instant prompt?](\n  #how-do-i-initialize-direnv-when-using-instant-prompt)\n\n### What do different symbols in Git status mean?\n\nWhen using Lean, Classic or Rainbow style, Git status may look like this:\n\n```text\nfeature:master wip ⇣42⇡42 ⇠42⇢42 *42 merge ~42 +42 !42 ?42\n```\n\n| Symbol    | Meaning                                                              | Source                                                 |\n| --------- | -------------------------------------------------------------------- | ------------------------------------------------------ |\n| `feature` | current branch; replaced with `#tag` or `@commit` if not on a branch | `git status --ignore-submodules=dirty`                 |\n| `master`  | remote tracking branch; only shown if different from local branch    | `git rev-parse --abbrev-ref --symbolic-full-name @{upstream}` |\n| `wip`     | the latest commit's summary contains \"wip\" or \"WIP\"                  | `git show --pretty=%s --no-patch HEAD`                 |\n| `=`       | up to date with the remote (neither ahead nor behind)                | `git rev-list --count HEAD...@{upstream}`              |\n| `⇣42`     | this many commits behind the remote                                  | `git rev-list --right-only --count HEAD...@{upstream}` |\n| `⇡42`     | this many commits ahead of the remote                                | `git rev-list --left-only --count HEAD...@{upstream}`  |\n| `⇠42`     | this many commits behind the push remote                             | `git rev-list --right-only --count HEAD...@{push}`     |\n| `⇢42`     | this many commits ahead of the push remote                           | `git rev-list --left-only --count HEAD...@{push}`      |\n| `*42`     | this many stashes                                                    | `git stash list`                                       |\n| `merge`   | repository state                                                     | `git status --ignore-submodules=dirty`                 |\n| `~42`     | this many merge conflicts                                            | `git status --ignore-submodules=dirty`                 |\n| `+42`     | this many staged changes                                             | `git status --ignore-submodules=dirty`                 |\n| `!42`     | this many unstaged changes                                           | `git status --ignore-submodules=dirty`                 |\n| `?42`     | this many untracked files                                            | `git status --ignore-submodules=dirty`                 |\n| `─`       | the number of staged, unstaged or untracked files is unknown         | `echo $POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY` or `git config --get bash.showDirtyState` |\n\n*Related*: [How do I change the format of Git status?](#how-do-i-change-the-format-of-git-status)\n\n### How do I change the format of Git status?\n\nTo change the format of Git status, open `~\u002F.p10k.zsh`, search for `my_git_formatter` and edit its\nsource code.\n\n*Related*: [What do different symbols in Git status mean?](\n  #what-do-different-symbols-in-git-status-mean)\n\n### Why is Git status from `$HOME\u002F.git` not displayed in prompt?\n\nWhen using Lean, Classic or Rainbow style, `~\u002F.p10k.zsh` contains the following parameter:\n\n```zsh\n# Don't show Git status in prompt for repositories whose workdir matches this pattern.\n# For example, if set to '~', the Git repository at $HOME\u002F.git will be ignored.\n# Multiple patterns can be combined with '|': '~(|\u002Ffoo)|\u002Fbar\u002Fbaz\u002F*'.\ntypeset -g POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~'\n```\n\nTo see Git status for `$HOME\u002F.git` in prompt, open `~\u002F.p10k.zsh` and remove\n`POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN`.\n\n### Why does Git status sometimes appear grey and then gets colored after a short period of time?\n\ntl;dr: When Git status in prompt is greyed out, it means Powerlevel10k is currently computing\nup-to-date Git status in the background. Prompt will get automatically refreshed when this\ncomputation completes.\n\nWhen your current directory is within a Git repository, Powerlevel10k computes up-to-date Git\nstatus after every command. If the repository is large, or the machine is slow, this computation\ncan take quite a bit of time. If it takes longer than 10 milliseconds (configurable via\n`POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS`), Powerlevel10k displays the last known Git status in\ngrey and continues to compute up-to-date Git status in the background. When the computation\ncompletes, Powerlevel10k refreshes prompt with new information, this time with colored Git status.\n\nWhen using *Rainbow* style, Git status is displayed as black on grey while it's still being\ncomputed. Depending on the terminal color palette, this may be difficult to read. In this case you\nmight want to change the background color to something lighter for more contrast. To do that, open\n`~\u002F.p10k.zsh`, search for `POWERLEVEL9K_VCS_LOADING_BACKGROUND`, uncomment it if it's commented out,\nand change the value.\n\n```zsh\ntypeset -g POWERLEVEL9K_VCS_LOADING_BACKGROUND=244\n```\n\nType `source ~\u002F.p10k.zsh` to apply your changes to the current Zsh session.\n\n*Related*: [How do I change prompt colors?](#how-do-i-change-prompt-colors)\n\n### How do I add username and\u002For hostname to prompt?\n\nWhen using Lean, Classic or Rainbow style, prompt shows `username@hostname` when you are logged in\nas root or via SSH. There is little value in showing `username` or `hostname` when you are logged in\nto your local machine as a normal user. So the absence of `username@hostname` in your prompt is an\nindication that you are working locally and that you aren't root. You can change it, however.\n\nOpen `~\u002F.p10k.zsh`. Close to the top you can see the most important parameters that define which\nsegments are shown in your prompt. All generally useful prompt segments are listed in there. Some of\nthem are enabled, others are commented out. One of them is of interest to you.\n\n```zsh\ntypeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(\n  ...\n  context  # user@hostname\n  ...\n)\n```\n\nSearch for `context` to find the section in the config that lists parameters specific to this prompt\nsegment. You should see the following lines:\n\n```zsh\n# Don't show context unless running with privileges or in SSH.\n# Tip: Remove the next line to always show context.\ntypeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=\n```\n\nIf you follow the tip and remove (or comment out) the last line, you'll always see\n`username@hostname` in prompt. You can change the format to just `username`, or change the color, by\nadjusting the values of parameters nearby. There are plenty of comments to help you navigate.\n\nYou can also move `context` to a different position in `POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS` or even\nto `POWERLEVEL9K_LEFT_PROMPT_ELEMENTS`.\n\n### Why some prompt segments appear and disappear as I'm typing?\n\nPrompt segments can be configured to be shown only when the current command you are typing invokes\na relevant tool.\n\n```zsh\n# Show prompt segment \"kubecontext\" only when the command you are typing invokes\n# invokes kubectl, helm, or kubens.\ntypeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens'\n```\n\nConfigs created by `p10k configure` may contain parameters of this kind. To customize when different\nprompt segments are shown, open `~\u002F.p10k.zsh`, search for `SHOW_ON_COMMAND` and either remove these\nparameters or change their values.\n\nYou can also define a function in `~\u002F.zshrc` to toggle the display of a prompt segment between\n*always* and *on command*. This is similar to `kubeon`\u002F`kubeoff` from\n[kube-ps1](https:\u002F\u002Fgithub.com\u002Fjonmosco\u002Fkube-ps1).\n\n```zsh\nfunction kube-toggle() {\n  if (( ${+POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND} )); then\n    unset POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND\n  else\n    POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens'\n  fi\n  p10k reload\n  if zle; then\n    zle push-input\n    zle accept-line\n  fi\n}\n```\n\nInvoke this function by typing `kube-toggle`. You can also bind it to a key by adding two more lines\nto `~\u002F.zshrc`:\n\n```zsh\nzle -N kube-toggle\nbindkey '^]' kube-toggle  # ctrl-] to toggle kubecontext in powerlevel10k prompt\n```\n\n### How do I change prompt colors?\n\nYou can either [change the color palette used by your terminal](\n  #change-the-color-palette-used-by-your-terminal) or\n[set colors through Powerlevel10k configuration parameters](\n  #set-colors-through-Powerlevel10k-configuration-parameters).\n\n#### Change the color palette used by your terminal\n\nHow exactly you change the terminal color palette (a.k.a. color scheme, or theme) depends on the\nkind of terminal you are using. Look around in terminal's settings\u002Fpreferences or consult\ndocumentation.\n\nWhen you change the terminal color palette, it usually affects only the first 16 colors, numbered\nfrom 0 to 15. In order to see any effect on Powerlevel10k prompt, you need to use prompt style that\nutilizes these low-numbered colors. Type `p10k configure` and select *Rainbow*, *Lean* → *8 colors*\nor *Pure* → *Original*. Other styles use higher-numbered colors, so they look the same in any\nterminal color palette.\n\n#### Set colors through Powerlevel10k configuration parameters\n\nOpen `~\u002F.p10k.zsh`, search for \"color\", \"foreground\" and \"background\" and change values of\nappropriate parameters. For example, here's how you can set the foreground of `time` prompt segment\nto bright red:\n\n```zsh\ntypeset -g POWERLEVEL9K_TIME_FOREGROUND=160\n```\n\nColors are specified using numbers from 0 to 255. Colors from 0 to 15 look differently in different\nterminals. Many terminals also ","Powerlevel10k 是一个为 Zsh 设计的主题，旨在提供快速、灵活且开箱即用的终端体验。该项目通过配置向导提供了极其丰富的自定义选项，支持即时提示、兼容 Powerlevel9k 和 Pure 主题等功能，同时保证了卓越的性能表现。尽管项目目前处于有限支持状态，不再添加新功能且大部分 bug 不会修复，但其强大的定制能力和高效的运行速度使其非常适合需要高度个性化终端界面的开发者使用，尤其是在频繁使用命令行进行开发和系统管理的场景中。",2,"2026-06-11 02:37:59","top_all"]