iectl completion¶
iectl completion¶
Description
Output shell completion code for the specified shell (bash, zsh) depending on the bash-completion binary.
Example installation instructions:
Bash
$ 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
Zsh
% iectl completion zsh > /usr/local/share/zsh/site-functions/_iectl % autoload -U compinit && compinit
NOTICE
Zsh completions are only supported in v5.2
or higher.
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.
Usage
iectl completion [OPTIONS]
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
iectl completion bash¶
Description
Output shell completions for bash.
Usage
iectl completion bash [OPTIONS]
Options
-h, --help help for bash
Options inherited from parent commands
-o, --output string output format
-q, --query string query on result of object
-v, --verbose verbose output
iectl completion zsh¶
Description
Output shell completions for zsh.
Usage
iectl completion zsh [OPTIONS]
Options
-h, --help help for zsh
Options inherited from parent commands
-o, --output string output format
-q, --query string query on result of object
-v, --verbose verbose output