Open jankatins opened 6 months ago
Same problem here. Interestingly I only see this error on macOS and not on Linux.
❯ zinit version
zinit v3.13.1-11-gd05a5301 (darwin21.3.0_arm64)
❯ zsh --version
zsh 5.9 (arm-apple-darwin21.3.0)
Also experiencing the same issue
zinit v3.13.1-12-g0c471af3
zsh 5.9 (x86_64-apple-darwin23.0)
What happened?
I try to call
compdef
in an sourced alias file. According to https://github.com/zdharma-continuum/zinit?tab=readme-ov-file#calling-compinit-without-turbo-mode, compdef should be defined after sourcing zinit, but it isn't:I'm using this code to load zinit (not sure where I got it from, it's ages since I installed zinit).
Interestingly, it's also gone after my zinit calls, so I have to set it explicitly around souring the aliases:
Steps to reproduce
See zshrc code above
Relevant output
Screenshots and recordings
No response
Operating System & Version
OS: darwin21.3.0 | Vendor: apple | Machine: x86_64 | CPU: x86_64 | Processor: i386 | Hardware: x86_64
Zsh version
zsh 5.9 (x86_64-apple-darwin21.3.0)
Terminal emulator
xterm-256color (wezterm, nightly)
If using WSL on Windows, which version of WSL
None
Additional context
Code of Conduct