completions
Prints a shell completion script for kasl on stdout. Source it from your shell profile to get tab-completion for commands, subcommands, and flags.
kasl completions <SHELL><SHELL> is one of bash, zsh, fish, powershell, or elvish.
kasl completions bash > ~/.local/share/bash-completion/completions/kaslOr source it directly from ~/.bashrc:
eval "$(kasl completions bash)"kasl completions zsh > ~/.zfunc/_kaslMake sure ~/.zfunc is on your fpath before compinit runs in ~/.zshrc:
fpath=(~/.zfunc $fpath)autoload -Uz compinit && compinitkasl completions fish > ~/.config/fish/completions/kasl.fishPowerShell
Section titled “PowerShell”Append to your profile ($PROFILE):
kasl completions powershell | Out-String | Invoke-ExpressionTo make it permanent:
kasl completions powershell >> $PROFILEElvish
Section titled “Elvish”kasl completions elvish > ~/.elvish/lib/kasl.elvThe script is generated from kasl’s own command definitions, so it always matches the installed version. Regenerate it after updating kasl if you wrote the output to a file rather than sourcing it dynamically.