Skip to content

Completion

iectl offers autocompletion support for either bash or zsh which improves usage.

NOTICE

Shell completion does not work for plugins.

Bash

For bash, you require the bash-completion package. View the instructions of your package manager regarding the installation process.

Afterwards, you have 2 options on how to persist the autocompletion:

  • Using the .bashrc file:

    bash echo 'source <(iectl completion bash)' >>~/.bashrc

  • Using the bash-completion configuration directory:

    bash iectl completion bash >/etc/bash_completion.d/iectl

Zsh

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):

    bash mkdir -p $ZSH/completions/ iectl completion zsh > $ZSH/completions/_iectl

  • If you do not use oh-my-zsh:

    bash iectl completion zsh > /usr/local/share/zsh/site-functions/_iectl autoload -U compinit && compinit