¡Hola! Ya tenía instalado el Oh My ZSH y todo chido, luego instalé y configuré el PowerLevel10k y ahora cada que abro mi consola me apare...

Lisseth Ariadne

Lisseth Ariadne

Pregunta
studenthace 4 años

¡Hola! Ya tenía instalado el Oh My ZSH y todo chido, luego instalé y configuré el PowerLevel10k y ahora cada que abro mi consola me aparece este mensaje, pero no sé cómo corregirlo. ¿Alguna idea? ¡Gracias!

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

/Users/lizo/.zshrc:source:112: no such file or directory: /Users/lizo/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh

2 respuestas
para escribir tu comentario
    Lisseth Ariadne

    Lisseth Ariadne

    studenthace 4 años

    ¡Gracias, Fer! Ya funcionó!

    Luis Fernando Cruz Carrillo

    Luis Fernando Cruz Carrillo

    studenthace 4 años

    Hola, primero corrige el siguiente error:

    /Users/lizo/.zshrc:source:112: no such file or directory: /Users/lizo/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh

    Para solucionar el error debes clonar el repositorio de autosuggestions:

    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

    Si necesitas información más detallada puedes visitar el GitHub del plug-in: https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md

    Ahora revisa que en tu archivo .zshrc se haya agregado las siguientes líneas:

    Hasta arriba de todo el documento deben estar:

    # 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

    Y hasta el final:

    [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

    Si no las tienes, puede que al final de la configuración de powerlevelup se te haya pasado permitirle agregar su configuración a ZSH. Pues volver a correr el programa de configuración con p10k configure o bien agregar las líneas antes mencionadas de forma manual.

    Espero que esto te sirva. Saludos.

    P.D: Te agrego los links de GitHub que recomienda tu error, ahí se encuentra la solución antes mencionada.

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

    https://github.com/romkatv/powerlevel10k/blob/master/README.md#how-do-i-enable-instant-prompt

Curso de Terminal y Línea de Comandos

Curso de Terminal y Línea de Comandos

Aprende a utilizar la terminal y la línea de comandos para navegar tu sistema operativo, manipular archivos y directorios, comprender permisos y procesos, y usar herramientas como grep y curl. Integra alias y personaliza tu shell para optimizar tu flujo de trabajo.

Curso de Terminal y Línea de Comandos
Curso de Terminal y Línea de Comandos

Curso de Terminal y Línea de Comandos

Aprende a utilizar la terminal y la línea de comandos para navegar tu sistema operativo, manipular archivos y directorios, comprender permisos y procesos, y usar herramientas como grep y curl. Integra alias y personaliza tu shell para optimizar tu flujo de trabajo.