Shell Autocomplete
Set up tab completion for dotweave in your shell.
Tab completion lets you discover commands, flags, and arguments without reaching for the docs. dotweave supports Bash, Zsh, Fish, and PowerShell.
Bash
Add this line to your ~/.bashrc:
eval "$(dotweave autocomplete bash)"
Then reload your shell:
source ~/.bashrc
Zsh
Add this line to your ~/.zshrc:
eval "$(dotweave autocomplete zsh)"
Then reload your shell:
source ~/.zshrc
Fish
For the current session, run:
dotweave autocomplete fish | source
For persistent setup, write the completion file:
mkdir -p ~/.config/fish/completions
dotweave autocomplete fish > ~/.config/fish/completions/dotweave.fish
PowerShell
Add this line to your PowerShell profile ($PROFILE):
dotweave autocomplete powershell | Invoke-Expression
Then reload your profile:
. $PROFILE
After adding the eval line, open a new terminal (or source the config file) and
try typing dotweave followed by a Tab. You should see a list of available
commands.
If you installed dotweave with a version manager like volta or fnm, make
sure the dotweave binary is on your PATH before the eval line runs.