completions
Generate shell completion scripts for tab-completion of rung commands and options.
Usage
rung completions <shell>Aliases
rung comp— shorthand forrung completions
Supported Shells
| Shell | Value |
|---|---|
| Bash | bash |
| Zsh | zsh |
| Fish | fish |
| PowerShell | powershell |
| Elvish | elvish |
Installation
Bash
# Add to ~/.bashrc or ~/.bash_profilerung completions bash >> ~/.bash_completionsource ~/.bash_completionOr for system-wide installation:
rung completions bash | sudo tee /etc/bash_completion.d/rung > /dev/nullZsh
# Create completions directory if neededmkdir -p ~/.zsh/completions
# Generate completionsrung completions zsh > ~/.zsh/completions/_rung
# Add to ~/.zshrc (if not already present)echo 'fpath=(~/.zsh/completions $fpath)' >> ~/.zshrcecho 'autoload -Uz compinit && compinit' >> ~/.zshrcFish
rung completions fish > ~/.config/fish/completions/rung.fishPowerShell
# Add to your PowerShell profilerung completions powershell >> $PROFILEElvish
rung completions elvish > ~/.elvish/lib/rung.elv# Then add `use rung` to ~/.elvish/rc.elvExample
After installing completions, you can tab-complete:
$ rung <TAB>create doctor init log merge move nxt prvstatus submit sync undo update completions
$ rung sync --<TAB>--abort --base --continue --dry-run --json --no-push --quiet
$ rung merge --method <TAB>merge rebase squashNotes
- Completions are generated from the CLI definition, so they’re always up-to-date
- You may need to restart your shell or source your config after installation
- Some shells require additional setup for completions to work
Related Commands
doctor— Verify rung is working correctly