Transient prompt is a Powerlevel10k feature that replaces your full prompt with a minimal one — just the prompt symbol — whenever you accept a command line by pressing ENTER. The rich, multi-segment prompt remains visible while you are typing, but once you run a command it collapses out of the way, keeping your terminal scrollback clean and easy to scan.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/romkatv/powerlevel10k/llms.txt
Use this file to discover all available pages before exploring further.
What transient prompt does
When you hit ENTER, Powerlevel10k trims the previous prompt down to its simplest form. Only the prompt character (e.g.,❯) remains in the scrollback; all other segments such as the directory path, Git status, timestamps, and cloud-context indicators are removed. The full prompt reappears for the next command you type, so you never lose any context while working — you only lose the clutter in history.
This makes it dramatically easier to copy-paste a series of commands from your terminal scrollback, because there is very little visual noise between the command lines.
How to enable transient prompt
Run the configuration wizard
The easiest way to enable transient prompt is through the interactive setup wizard. Type:Follow the prompts until you reach the Transient Prompt question and select Yes.
Parameter values
| Value | Behaviour |
|---|---|
off | Transient prompt is disabled. Prompt is never changed after you press ENTER. |
always | Prompt is trimmed to the prompt symbol every time you accept a command line. |
same-dir | Prompt is trimmed unless this is the first command typed after changing the current working directory, allowing you to see where you navigated to. |
Combining transient prompt with two-line prompts
Combining transient prompt with sparse prompts
Reloading your configuration
Troubleshooting: transient prompt stops working
If transient prompt stops responding after some time in a session, the most likely cause is thatsource ~/.zshrc was run (perhaps by a tool or plugin that reloads Zsh configuration
automatically). Because re-sourcing .zshrc in a running session can leave Zsh in an inconsistent
state, the Zsh Line Editor (ZLE) widgets that power transient prompt may become unregistered or
overwritten.
The fix is the same as the prevention: always use exec zsh to restart Zsh cleanly, or p10k reload
to reload only the Powerlevel10k configuration without restarting the shell.