Enable shell completion¶
Make your shell complete alis commands, subcommands and flags.
Prerequisites¶
- The CLI installed and on your PATH.
Steps¶
-
If completion is not enabled yet, run once:
-
Install the script for every new session:
-
Open a new shell. For the current one only:
source <(alis completion zsh).
-
Install the
bash-completionpackage with your OS package manager if it is missing. -
Install the script for every new session:
-
Open a new shell. For the current one only:
source <(alis completion bash).
-
Install the script for every new session:
-
Open a new shell. For the current one only:
alis completion fish | source.
Add --no-descriptions to any of the commands above to generate a script without flag descriptions.
Related: alis completion.