-
Notifications
You must be signed in to change notification settings - Fork 0
Completions
github-actions[bot] edited this page Sep 5, 2026
·
1 revision
Both write to stdout, so both are one redirect away from being installed.
mlab completions zsh > ~/.zfunc/_mlab
mlab completions bash > /etc/bash_completion.d/mlab
mlab completions fish > ~/.config/fish/completions/mlab.fishbash, zsh, fish, elvish and powershell are supported.
The script is generated from the command tree itself, so it never drifts from the binary: every sub-command, every flag and every fixed value set — the severities, the output formats — completes because the parser already knows them.
mkdir -p ~/.zfunc
mlab completions zsh > ~/.zfunc/_mlabwith ~/.zfunc on fpath before compinit runs:
fpath=(~/.zfunc $fpath)
autoload -Uz compinit && compinitSystem-wide, if you can write there:
mlab completions bash | sudo tee /etc/bash_completion.d/mlab > /dev/nullOtherwise source it from your ~/.bashrc:
mlab completions bash > ~/.local/share/mlab-completion.bash
echo 'source ~/.local/share/mlab-completion.bash' >> ~/.bashrcmlab man > /usr/local/share/man/man1/mlab.1
man mlabA roff page, generated from the same command tree — the descriptions in it are
the ones in --help.
Regenerate both after an upgrade. Neither is shipped in the packages, because a stale completion script is more annoying than none.