Skip to content

iectl completion

Output shell completion code for the specified shell (bash, zsh)

Synopsis

Outputs iectl shell completion for the given shell (bash or zsh) This depends on the bash-completion binary. Example installation instructions:

for bash users

$ iectl completion bash > ~/.iectl-completion $ source ~/.iectl-completion # for persistentcy, you can also do the following $ echo 'source <(iectl completion bash)' >> ~/.bashrc $ iectl completion bash >/etc/bash_completion.d/iectl

for zsh users

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

or if you use oh-my-zsh (needs zsh-completions plugin)

% mkdir $ZSH/completions/ % iectl completion zsh > $ZSH/completions/_iectl Additionally, you may want to output the completion to a file and source in your .bashrc

NOTICE

for zsh users: [1] zsh completions are only supported in versions of zsh >= 5.2

iectl completion [flags]

Options

  -h, --help   help for completion

Options inherited from parent commands

  -o, --output string   output format
  -q, --query string    query on result of object
  -v, --verbose         verbose output

SEE ALSO