[WARNING]: Console output during zsh initialization detected

I installed zsh and powerlevek10k fonts/themes, they work but each time I start a terminal I get this message:


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

/home/mrcrab/.oh-my-zsh/oh-my-zsh.sh:source:128: no such file or directory: /home/mrcrab/.oh-my-zsh/themes/powerlevel10k/powerlevel10k.zsh-theme

I really don’t know how to repair this, could someone pls help and explain it to me like a 5 yo?

I have a different error, he is getting one about zsh autocompletion, Im getting for powerlevek10
@Tomek

The message tells you what to do very clearly.

image

@Yochanan well i just cloned it from git. But now for some reason I dont get this messg but My autosuggestions stopped working wtf?

Now pay attention, and don’t forget to read your sentences today, okay?

Reading will help you to learn to understand the language better.

- Disable instant prompt either by running p10k configure

Read it again, at least ten times.

Now try to translate into your native language.

Homework Questions:

What does 'running p10k configure mean?
How do you run it?

I run p10k configure multiple times, didn’t change shit

Well I only ran it once. Actually good that I did, there were new options for me…


including this one, and one more screen to save…

Maybe you need to refresh your config and start again?
Here’s the prompt…

as I said in my reply above, I added proper git repos in proper places and its fine, I don’t get the warning now.
My problem now it that I don’t get autosuggestions

in your .zshrc, do you have this?

## PLUGINS
plugins=(
    archlinux
    git
    history-substring-search
    colored-man-pages
    zsh-autosuggestions
    zsh-syntax-highlighting
)

Try copying your .zshrc > .zshrc_John and then edit and paste this to your original to see if it clears it up?

Summary
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi

# NOTES
# sudo systemctl start mnt-T3.mount
# fstab is dead
# BLUR ALACRITTY
if [[ $(ps --no-header -p $PPID -o comm) =~ '^alacritty$' ]]; then
        for wid in $(xdotool search --pid $PPID); do
            xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $wid; done
fi

# Path to your oh-my-zsh installation.
export ZSH="/home/ben/.oh-my-zsh"
export PATH=/home/ben/Dropbox:$PATH
ZSH_THEME="powerlevel10k/powerlevel10k"
# cat = bat
# zoxide
eval "$(zoxide init zsh)"

## PLUGINS
plugins=(
    archlinux
    git
    history-substring-search
    colored-man-pages
    zsh-autosuggestions
    zsh-syntax-highlighting
)

source $ZSH/oh-my-zsh.sh
alias reload='source .zshrc'

######################### Pre-oh-my-zsh ###########################
### MANJARO ###
## Options section
# setopt correct                                                  # Auto correct mistakes
setopt extendedglob                                             # Extended globbing. Allows using regular expressions with *
setopt nocaseglob                                               # Case insensitive globbing
setopt rcexpandparam                                            # Array expension with parameters
setopt nocheckjobs                                              # Don't warn about running processes when exiting
setopt numericglobsort                                          # Sort filenames numerically when it makes sense

# Navigate words with ctrl+arrow keys
bindkey '^[Oc' forward-word                                     #
bindkey '^[Od' backward-word                                    #
bindkey '^[[1;5D' backward-word                                 #
bindkey '^[[1;5C' forward-word                                  #
bindkey '^H' backward-kill-word                                 # delete previous word with ctrl+backspace
bindkey '^[[Z' undo                                             # Shift+tab undo last action

## Keybindings section
bindkey -e
bindkey '^[[7~' beginning-of-line                               # Home key
bindkey '^[[H' beginning-of-line                                # Home key
if [[ "${terminfo[khome]}" != "" ]]; then
  bindkey "${terminfo[khome]}" beginning-of-line                # [Home] - Go to beginning of line
fi
bindkey '^[[8~' end-of-line                                     # End key
bindkey '^[[F' end-of-line                                     # End key
if [[ "${terminfo[kend]}" != "" ]]; then
  bindkey "${terminfo[kend]}" end-of-line                       # [End] - Go to end of line
fi
bindkey '^[[2~' overwrite-mode                                  # Insert key
bindkey '^[[3~' delete-char                                     # Delete key
bindkey '^[[C'  forward-char                                    # Right key
bindkey '^[[D'  backward-char                                   # Left key
bindkey '^[[5~' history-beginning-search-backward               # Page up key
bindkey '^[[6~' history-beginning-search-forward                # Page down key


# Use syntax highlighting
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# Use history substring search
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh

# setopt nobeep                                                   # No beep
setopt appendhistory    # Immediately append history instead of overwriting
setopt extendedhistory                                          
setopt histignorealldups                                        # If a new command is a duplicate, remove the older one
setopt autocd                                                   # if only directory path is entered, cd there.
HISTFILE=~/.zhistory
HISTSIZE=SAVEHIST=15000

zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'       # Case insensitive tab completion
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"         # Colored completion (different colors for dirs/files/etc)
zstyle ':completion:*' rehash true                              # automatically find new executables in path 
# Speed up completions
zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache

export EDITOR=/usr/bin/nano
export VISUAL=/usr/bin/nano
WORDCHARS=${WORDCHARS//\/[&.;]}                                 # Don't consider certain characters part of the word


# Maia prompt
#  PROMPT="%B%{$fg[cyan]%}%(4~|%-1~/.../%2~|%~)%u%b >%{$fg[cyan]%}>%B%(?.%{$fg[cyan]%}.%{$fg[red]%})>%{$reset_color%}%b " # Print some system information when the shell is first started
# Right prompt with exit status of previous command if not successful
  RPROMPT="%{$fg[red]%} %(?..[%?])" 
# Right prompt with exit status of previous command marked with ✓ or ✗
  RPROMPT="%(?.%{$fg[green]%}✓ %{$reset_color%}.%{$fg[red]%}✗ %{$reset_color%})"

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

# Base16 Shell
BASE16_SHELL="$HOME/.config/base16-shell/"
[ -n "$PS1" ] && \
    [ -s "$BASE16_SHELL/profile_helper.sh" ] && \
        eval "$("$BASE16_SHELL/profile_helper.sh")"

### Replacements Section
# fd>find
alias more='less'
alias cat='bat'


## Alias section
# package mgmt
alias up='topgrade'
alias yuy='paru'
alias purge='paru -Rnsuv'
alias mirrors='sudo pacman-mirrors --fasttrack && yay -Syyu'
alias clean='paccache -rvuk0 && sudo journalctl --vacuum-time=2weeks'
alias installed="comm -12 <(grep -Poe '\[ALPM\] installed \K\S*' /var/log/pacman.log | sort | uniq) <(pacman -Qeq | sort) | bat"
alias paco='pacman -Qdtq | sudo pacman -Rs -'

# ls alternatives:
alias lsx='exa --icons --color=always --group-directories-first'
alias ls=lsd
alias la='ls -a'
alias ll='ls -l | less -RF'

alias his='history |rg $1'
alias reboot='systemctl reboot -i'
alias update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg'alias sudo='sudo '

# Misc
alias jctl="journalctl -p 3 -xb"
alias egrep='egrep --colour=auto'
alias fgrep='fgrep --colour=auto'
alias c='clear'
alias xx='cmatrix'
alias cp='cp -av -i'
alias mv='mv -v -i'
alias rm='rm -v -d'
alias df='df -h'
alias ..='cd ..'
alias ...='cd ../..'
alias mkdir='mkdir -p -v'
alias fontupdate='sudo fc-cache -fv'
alias qq='exit'
alias su='sudo -i'
alias gksu='pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY'
alias cueflac='cuebreakpoints cd.cue |shnsplit -o flac cd.flac && cuetag cd.cue split-track*.flac'
alias zshconfig="code ~/.zshrc &"
alias ohmyzsh="dolphin ~/.oh-my-zsh &"
alias doas='doas --'
#   PLEX
alias pmstart='sudo systemctl start plexmediaserver'
alias pmstop='sudo systemctl stop plexmediaserver'
alias pmstatus='sudo systemctl status plexmediaserver'
# PULSEAUDIO
alias pstop='systemctl --user stop pulseaudio.socket systemctl --user stop pulseaudio.service'
alias pstart='systemctl --user start pulseaudio.socket systemctl --user start pulseaudio.service'

# Automatically ls when changing directory
cd() {
  builtin cd "$@" && ls
}
alias f='fortune -o'
fortune -a

if you didn’t kill your terminal when you did this, then just enter:
source .zshrc
Hope it’s good. I forget how I got mine working, but I had some issues.

I have

  1. 4 community/manjaro-zsh-config 0.20-3 [43.01KB 366.04KB] [Installed]

  2. 1 extra/zsh 5.8-1 [2.12MB 6.22MB] [Installed]

  3. 9 community/zsh-autosuggestions 0.6.4-1 [15.43KB 41.72KB] [Installed]

Some of my alias’s won’t work - you’ll need to install some good stuff :wink: like ‘bat’ and ‘paru’ (or edit those to suit)
Hmmm also cmatrix, df, doas, fortune.

bat is cool, try going to your music directory and doing 'ls | bat` :wink: