ReferenceCommand line
rent completions
rent completions prints a completion script for Bash, Elvish, Fish, PowerShell, or Zsh. It does not need to run
inside a Rent project.
Zsh
mkdir -p ~/.zfunc
rent completions zsh > ~/.zfunc/_rentAdd fpath=(~/.zfunc $fpath) and autoload -Uz compinit && compinit to .zshrc, then open a new shell.
Bash
rent completions bash > ~/.local/share/bash-completion/completions/rentFish
rent completions fish > ~/.config/fish/completions/rent.fishPowerShell
rent completions powershell | Out-String | Invoke-ExpressionAfter installation, typing rent migrate and pressing Tab completes migration subcommands and options.
The generated file is ordinary shell code. For example, the Zsh script begins with a completion definition for the
rent command:
#compdef rent
autoload -U is-at-least
_rent() {
# generated command and option definitions
}