I'm using oh-my-zsh. The commands in the zellij documentation didn't work for me. I got it to work by running these commands below -
cd ~
take .zsh
zellij setup --generate-completion zsh > ./.zsh/_zellij
echo -e "fpath=(~/.zsh \$fpath)\n" >> ~/.zshrc