completion command generates shell completion scripts that enable tab completion for Pumu commands, flags, and arguments in your shell.
Usage
Supported shells
bash- Bash shellzsh- Z shellfish- Fish shellpowershell- PowerShell
Installation
Bash
Zsh
Fish
PowerShell
What gets autocompleted
Once installed, you can use Tab to autocomplete:- Commands:
pumu <Tab>showslist,sweep,repair,prune,completion,help - Flags:
pumu sweep --<Tab>shows--reinstall,--no-select,--path,--help - File paths:
pumu -p <Tab>provides directory completion
Examples
Check available commands
Autocomplete sweep flags
Autocomplete path flag
Verification
After installing completion, verify it works:Troubleshooting
Completions not working after installation
Completions not working after installation
- Restart your shell or run
source ~/.bashrc(or equivalent for your shell) - Verify the completion script is loaded:
type _pumu(bash/zsh) orcomplete -p pumu(bash) - For zsh, ensure
compinitis called after sourcing completions
Completions work but show wrong options
Completions work but show wrong options
- Regenerate the completion script:
pumu completion bash > ~/.local/share/bash-completion/completions/pumu - Clear completion cache:
rm ~/.zcompdump*(zsh) and restart shell
Related commands
- help - Show help for any command