본문 바로가기

맥(솔라리스)

[WARNING] : zsh 초기화 중 콘솔 출력이 감지되었습니다.

반응형

[WARNING] : zsh 초기화 중 콘솔 출력이 감지되었습니다.

[WARNING]: Console output during zsh initialization detected.

[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 --
728x90

해결 방법

.p10k.zsh 파일을 찾아 편집합니다. (verbose -> off 변경)

typeset -g POWERLEVEL9K_INSTANT_PROMPT=off

vim ~/.p10k.zsh
...
 1707   # Instant prompt mode.
 1708   #
 1709   #   - off:     Disable instant prompt. Choose this if you've tried instant prompt and found
 1710   #              it incompatible with your zsh configuration files.
 1711   #   - quiet:   Enable instant prompt and don't print warnings when detecting console output
 1712   #              during zsh initialization. Choose this if you've read and understood
 1713   #              https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt.
 1714   #   - verbose: Enable instant prompt and print a warning when detecting console output during
 1715   #              zsh initialization. Choose this if you've never tried instant prompt, haven't
 1716   #              seen the warning, or if you are unsure what this all means.
 1717   typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
 ...

 

728x90
반응형