rent
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/_rent

Add fpath=(~/.zfunc $fpath) and autoload -Uz compinit && compinit to .zshrc, then open a new shell.

Bash

rent completions bash > ~/.local/share/bash-completion/completions/rent

Fish

rent completions fish > ~/.config/fish/completions/rent.fish

PowerShell

rent completions powershell | Out-String | Invoke-Expression

After 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
}

On this page