dotling completions
Generate shell completion scripts.
Usage
dotling completions <SHELL>
Arguments
| Argument | Description |
|---|---|
<SHELL> | The shell to generate completions for |
Supported shells
bash, zsh, fish, elvish, powershell
Installation
Quick install (auto-detect shell)
just install-completions
Manual install
Bash
dotling completions bash > ~/.local/share/bash-completion/completions/dotling
Zsh
dotling completions zsh > ~/.zfunc/_dotling
Add to ~/.zshrc if not already present:
fpath=(~/.zfunc $fpath)
autoload -Uz compinit && compinit
Fish
dotling completions fish > ~/.config/fish/completions/dotling.fish
Elvish
dotling completions elvish > ~/.config/elvish/completions/dotling.elv
PowerShell
dotling completions powershell > dotling.ps1
Then source from your $PROFILE.
Examples
# Generate bash completions
dotling completions bash > ~/.local/share/bash-completion/completions/dotling
# Generate zsh completions
dotling completions zsh > ~/.zfunc/_dotling
# Generate fish completions
dotling completions fish > ~/.config/fish/completions/dotling.fish