redline completion

Print a tab-completion script for bash, zsh or fish.

Prints a shell script that tab-completes every command, every flag, and the metrics subcommands. It completes both redline and redlinegate. Load it once from your shell's startup file.

Where it runs: Anywhere. It needs redline or redlinegate on your PATH, for example from a global install.

Synopsis

synopsis
redline completion bash|zsh|fish

Examples

Load it in your shell

terminal
# bash, in ~/.bashrc
$ source <(redline completion bash)
# zsh, in ~/.zshrc, after compinit
$ source <(redline completion zsh)
# fish
$ redline completion fish > ~/.config/fish/completions/redline.fish

Exit codes

CodeMeaning
0The script was printed on stdout.
2No shell, or a shell other than bash, zsh or fish.