For zsh, you have 2 options dependent on whether you use oh-my-zsh or not.
- If you use oh-my-zsh (this requires the zsh-completions plugin):
mkdir -p $ZSH/completions/
iectl completion zsh > $ZSH/completions/_iectl
- If you do not use oh-my-zsh:
iectl completion zsh > /usr/local/share/zsh/site-functions/_iectl
autoload -U compinit && compinit