Skip to content

mw completion zsh

Releasev0.35.0 · cfeceb67

mw completion zsh [flags]

Generate the autocompletion script for the zsh shell.

If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:

echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions in your current shell session:

source <(mw completion zsh)

To load completions for every new session, execute once:

mw completion zsh > "${fpath[1]}/_mw"
mw completion zsh > $(brew --prefix)/share/zsh/site-functions/_mw

You will need to start a new shell for this setup to take effect.

--no-descriptions
disable completion descriptions
--help
Help for this command
--no-interaction
Do not ask any interactive questions
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.