It may sound silly, but make sure you use the ~/.zshrc source file (create it if it doesn't exist). In OSX, I completely forgot that I switched to zsh and got the error you mentioned because I was doing source ~/.bashrc
The easiest way to get automatic completion is to install it via Homebrew with brew install bash-completion (it will work for both zsh and bash) and then put it in ~/.zshrc :
# auto-completion if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then . /opt/local/etc/profile.d/bash_completion.sh fi
Save the file and make source ~/.zshrc and everything will be fine
kuzyn
source share