zinit
zinit copied to clipboard
[bug]: `zinit creinstall -Q ...` or `-q` is not quiet
What happened?
The documentation states that the -q
or -Q
parameter for zinit creinstall
is quiet, but it prints ==> Installed 1 completion
.
This is annoying because I have put this command into the zshrc
and thus it gets printed on every new shell.
Sure this can be worked around with a >/dev/null
, however, IIRC this happend only after a zinit update, so it might be a regression or unintended change.
Steps to reproduce
- Use zinit version
v3.11.0
- put some completion script into a directory, for instance
rustup completions zsh cargo > ".config/zsh/completions/_cargo"
- execute
zinit creinstall -Q ~/.config/zsh/completions
and expect no output.
Relevant output
❯ zinit creinstall ~/.config/zsh/completions
Symlinking completion _cargo to completions directory.
Forgetting commands completed by `_cargo': cargo
==> Installed 1 completion
==> Added 1 completion to $INSTALLED_COMPS array
Initializing completion (compinit)…
❯ zinit creinstall -q ~/.config/zsh/completions
==> Installed 1 completion
❯ zinit creinstall -Q ~/.config/zsh/completions
==> Installed 1 completion
Screenshots and recordings
No response
Operating System & Version
OS: linux-gnu | Vendor: pc | Machine: x86_64 | CPU: x86_64 | Processor: unknown | Hardware: x86_64
Zsh version
zsh 5.9 (x86_64-pc-linux-gnu)
Terminal emulator
xterm-256color
If using WSL on Windows, which version of WSL
None
Additional context
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct