Skip to content

[FEAT] quiet mode for ZSH based powerlevel shells #1568

Description

@SalahAdDin

Following this closed issue, we are looking for a way to make FNM work in our system.

It seems after an update, zsh is unable to use the FNM loaded version:

Using Node v24.14.1
❯ node -v
v22.22.3

We located the fnm setup for zsh before the critical code to avoid the Console output during zsh initialization detected. error.

Trying to make fnm to work, we moved it to after the critical code and it works, but outputs the instant-prompt error.

Using Node v24.14.1

[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#instant-prompt

-- console output produced during zsh initialization follows --

Using Node v24.14.1
❯ node -v
v24.14.1

We tried this other fix, and it didn't work.

A proper solution should be a quiet mode.

My system:

❯ fastfetch
             ............                 LuisAlaguna@LuisAlaguna-PC
         .';;;;;.       .,;,.             --------------------------
      .,;;;;;;;.       ';;;;;;;.          OS: Deepin 25 x86_64
    .;::::::::'     .,::;;,''''',.        Host: ROG Strix SCAR 18 G834JYR_G834JYR (1.0)
   ,'.::::::::    .;;'.          ';       Kernel: Linux 6.18.27-amd64-desktop-rolling
  ;'  'cccccc,   ,' :: '..        .:      Uptime: 4 days, 1 hour, 3 mins
 ,,    :ccccc.  ;: .c, '' :.       ,;     Packages: 2813 (dpkg)
.l.     cllll' ., .lc  :; .l'       l.    Shell: zsh 5.9
.c       :lllc  ;cl:  .l' .ll.      :'    Display (NE180QDM-NM1): 2560x1600 @ 60 Hz in 18" [Built-in]
.l        'looc. .   ,o:  'oo'      c,    DE: DDE
.o.         .:ool::coc'  .ooo'      o.    WM: KWin (X11)
 ::            .....   .;dddo      ;c     WM Theme: dark/deepin
  l:...            .';lddddo.     ,o      Theme: deepin-dark [GTK2]
   lxxxxxdoolllodxxxxxxxxxc      :l       Icons: organic-glass [GTK2]
    ,dxxxxxxxxxxxxxxxxxxl.     'o,        Cursor: organic-glass
      ,dkkkkkkkkkkkkko;.    .;o;          Terminal: code 1.122.0
        .;okkkkkdl;.    .,cl:.            CPU: Intel(R) Core(TM) i9-14900HX (32) @ 5.80 GHz
            .,:cccccccc:,.                GPU 1: NVIDIA GeForce RTX 4090 Laptop GPU [Discrete]
                                          GPU 2: Intel Raptor Lake-S UHD Graphics @ 1.10 GHz [Integrated]
                                          Memory: 28.46 GiB / 62.41 GiB (46%)
                                          Swap: 0 B / 16.00 GiB (0%)
                                          Disk (/): 9.77 GiB / 93.90 GiB (10%) - ext4
                                          Disk (/media/LuisAlaguna/Library): 436.86 GiB / 702.22 GiB (62%) - fuseblk
                                          Disk (/media/LuisAlaguna/OS): 203.71 GiB / 224.00 GiB (91%) - fuseblk
                                          Disk (/media/LuisAlaguna/Projects2): 365.31 GiB / 709.57 GiB (51%) - fuseblk
                                          Disk (/media/LuisAlaguna/RESTORE): 19.37 GiB / 26.00 GiB (74%) - ntfs3
                                          Disk (/persistent): 104.41 GiB / 124.93 GiB (84%) - ext4
                                          Local IP (wlo1): 192.168.1.6/24
                                          Battery (R220358): 100% [AC Connected]
                                          Locale: en_US.UTF-8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions