Enabling and disabling autocompletion when working with kosctl
July 30, 2024
ID 242448
The kosctl
tool lets you enable autocompletion when working with your own commands in the shells known as Bash, Z shell and fish.
Autocompletion is enabled by using the kosctl completion enable [options] {bash|zsh|fish}
command. Autocompletion is disabled by using the kosctl completion disable [options] {bash|zsh|fish}
command. When autocompletion is enabled or disabled, changes are made to the configuration files for Bash, Z shell or fish (~/.bashrc
, ~/.zshrc
or ~/.config/fish/completions/kosctl.fish
). After enabling autocompletion, the changes will take effect when a new instance of the specified shell is started.
If the --show-only
or -s
parameter is also used, the command displays the changes to the configuration files without actually making the changes.