dotweave autocomplete
Set up shell tab completion.
Print shell autocomplete scripts.
Emit shell-specific autocomplete scripts for use with eval/source-based shell setup.
Usage
dotweave autocomplete <shell>
Subcommands
| Subcommand | Description |
|---|---|
dotweave autocomplete bash | Print autocomplete script for Bash. |
dotweave autocomplete zsh | Print autocomplete script for Zsh. |
dotweave autocomplete fish | Print autocomplete script for Fish. |
dotweave autocomplete powershell | Print autocomplete script for PowerShell. |
Examples
Set up autocomplete in Bash (add to ~/.bashrc):
eval "$(dotweave autocomplete bash)"
Set up autocomplete in Zsh (add to ~/.zshrc):
eval "$(dotweave autocomplete zsh)"
Set up autocomplete in Fish for the current session:
dotweave autocomplete fish | source
Set up autocomplete in Fish persistently:
mkdir -p ~/.config/fish/completions
dotweave autocomplete fish > ~/.config/fish/completions/dotweave.fish
Set up autocomplete in PowerShell (add to your profile):
dotweave autocomplete powershell | Invoke-Expression