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.