[WARNING]: Console output during zsh initialization detected.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Last login: Sun Apr  2 17:06:39 on ttys000

[WARNING]: Console output during zsh initialization detected.

When using Powerlevel10k with instant prompt, console output during zsh
initialization may indicate issues.

You can:

- Recommended: Change ~/.zshrc so that it does not perform console I/O
after the instant prompt preamble. See the link below for details.

* You will not see this error message again.
* Zsh will start quickly and prompt will update smoothly.

- Suppress this warning either by running p10k configure or by manually
defining the following parameter:

typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet

* You will not see this error message again.
* Zsh will start quickly but prompt will jump down after initialization.

- Disable instant prompt either by running p10k configure or by manually
defining the following parameter:

typeset -g POWERLEVEL9K_INSTANT_PROMPT=off

* You will not see this error message again.
* Zsh will start slowly.

- Do nothing.

* You will see this error message every time you start zsh.
* Zsh will start quickly but prompt will jump down after initialization.

For details, see:
https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt

-- console output produced during zsh initialization follows --

解决方法

1
p10k configure 

Instant Prompt Mode改为off


[WARNING]: Console output during zsh initialization detected.
http://example.com/2023/04/02/WARNING-Console-output-during-zsh-initialization-detected/
Author
WYX
Posted on
April 2, 2023
Licensed under