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
redline completion bash|zsh|fishExamples
Load it in your shell
# 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
| Code | Meaning |
|---|---|
0 | The script was printed on stdout. |
2 | No shell, or a shell other than bash, zsh or fish. |
Related
- All commands
- All commands and the shared exit codes
- Source:
cli/bin/commands.ts