Shell Completion
Thexyz completion command generates shell completion scripts for faster command entry.
Supported Shells
| Shell | Command |
|---|---|
| Bash | xyz completion bash |
| Zsh | xyz completion zsh |
| Fish | xyz completion fish |
| PowerShell | xyz completion powershell |
Installation
- Bash
- Zsh
- Fish
- PowerShell
Usage
After installation, pressTab to complete commands:
Command Completion
Subcommand Completion
Flag Completion
Completion Features
Command Descriptions
With zsh and fish, completions include descriptions:Dynamic Completions
Some completions are context-aware:Troubleshooting
Completions not working (Bash)
Completions not working (Bash)
Ensure bash-completion is installed:macOS:Ubuntu/Debian:Add to
~/.bashrc:Completions not working (Zsh)
Completions not working (Zsh)
Enable completion system in Reload:
~/.zshrc:Old completions cached
Old completions cached
Remove cached completions and regenerate:Zsh:Bash:
Permission denied
Permission denied
For system-wide installation: