0 votos

Después de migrar a la CPU de Arm, los plugins de zsh y oh-my-zsh dan advertencias de `compint`

Recientemente migré de una Macbook basada en Intel a una Macbook basada en Arm. Como parte de la migración, copié archivos incluyendo mi instalación de Homebrew.

Resulta que esto ha causado algunos problemas y eliminé con éxito todo en /usr/local/share y cambié a un nuevo Homebrew en /opt/local/share con paquetes basados en Arm.

Pero mi zsh sigue haciendo referencia a algunas cosas en el antiguo Homebrew. La mitad de las veces que inicio una nueva sesión de terminal, recibo errores como los siguientes:

compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_argo
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_aws
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_azcopy
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_bat
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_csvtk
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_delta
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_fd
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_flyctl
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_fnm
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_gh
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_git
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_helm
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_highlight
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_j
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_jc
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_jo
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_kubectl
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_parallel
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_pdfgrep
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_pipenv
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_rclone
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_rg
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_tldr
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_yq
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_yt-dlp
compinit:shift:529: shift count must be <= $#
upgrcompinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_argo
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_aws
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_azcopy
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_bat
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_csvtk
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_delta
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_fd
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_flyctl
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_fnm
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_gh
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_git
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_helm
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_highlight
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_j
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_jc
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_jo
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_kubectl
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_parallel
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_pdfgrep
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_pipenv
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_rclone
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_rg
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_tldr
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_yq
compinit:shift:529: shift count must be <= $#
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_yt-dlp
compinit:shift:529: shift count must be <= $#

Estoy utilizando tanto zsh como plugins de oh-my-zsh. He intentado eliminar y reinstalar completamente ambos. Pero no puedo hacer desaparecer estos errores.

¿Alguna orientación que otros puedan ofrecer? Gracias.

1voto

Puede que necesites revisar los archivos de inicio para ver si hay referencias a /usr/local/share y cambiarlas a /opt/homebrew/share.

La forma más sencilla sería ejecutar

rm -rf /usr/local/share/zsh/site-functions
ln -s /opt/homebrew/share/zsh/site-functions /usr/local/share/zsh/site-functions

AppleAyuda.com

AppleAyuda es una comunidad de usuarios de los productos de Apple en la que puedes resolver tus problemas y dudas.
Puedes consultar las preguntas de otros usuarios, hacer tus propias preguntas o resolver las de los demás.

Powered by:

X