Jump to >

setup-completion

New in version 1.0.

rbt setup-completion currently supports Bash and Zsh for auto-completions. The command will detect your login shell and install the appropriate auto-completions for your shell. You can also specify which auto-completions you wish to install by replacing <shell> with either bash or zsh.

Usage

$ rbt setup-completion [options] <shell>

Please refer to the installation notes for OS X and Linux if you are having difficulties running the command.

Installation Notes

OS X

Zsh gets installed in a directory that requires root permission to write to. You can either run the command as root or follow the instructions for manual installation below. To install, run:

$ sudo rbt setup-completion zsh

Note: Bash on OS X does not require the use of sudo.

Linux

Both Bash and Zsh are installed in directories that require root permission to write to. You can either run the command as root or follow the instructions for manual installation below. To install, run:

$ sudo rbt setup-completion <shell>

Manual Installation

Bash

You will first need to download the bash auto completion file. Copy the file to your home directory, and add the following command to your .bash_profile file:

source ~/rbt-bash-completion

ZSH

You will first need to download the zsh auto completion file. Next, create a directory in your home directory called .rbt-completion and copy the file to ~/.rbt-completion. Then add the following to your .zshrc file:

fpath=(~/.rbt-completion $fpath)
autoload -U compinit && compinit

Options

-d, --debug

Displays debug output.

This information can be valuable when debugging problems running the command.

The default can be set in DEBUG in .reviewboardrc.