completions
v0.1.4+Generate shell completion scripts for tab-completion of rung commands and options.
rung completions <shell>Aliases
Section titled “Aliases”rung comp— shorthand forrung completions
Supported Shells
Section titled “Supported Shells”| Shell | Value |
|---|---|
| Bash | bash |
| Zsh | zsh |
| Fish | fish |
| PowerShell | powershell |
| Elvish | elvish |
Installation
Section titled “Installation”# 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/null# 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' >> ~/.zshrcrung completions fish > ~/.config/fish/completions/rung.fishPowerShell
Section titled “PowerShell”# Add to your PowerShell profilerung completions powershell >> $PROFILEElvish
Section titled “Elvish”rung completions elvish > ~/.elvish/lib/rung.elv# Then add `use rung` to ~/.elvish/rc.elvExample
Section titled “Example”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 squash- 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
Section titled “Related Commands”doctor— Verify rung is working correctly