I'm trying to set up my zsh terminal environment on my M2 MacBook Air
I'm trying to set up my zsh terminal environment on my brand new M2 Air. I'm following the instructions at the below page:
https://scriptingosx.com/2019/07/moving-to-zsh-part-5-completions/
I'm trying to add tab autocompletion, but everywhere I read I need to run autoload -Uz compinit && compinit first. When I run those commands from the command line they work and I can use tab autocomplete, but when I run them from .zshrc I get the error "command not found: compinit\u2029" as per attached screenshot
I noticed someone else posted a related issue, but the trail went cold.
"complete:13: command not found: compdef"… - Apple Community
Can you help me get rid of this error and run compinit from my .zshrc ?
[Edited by Moderator]
MacBook Air