utils

Child Commands

Command

Description

completion

Generate completion script

completion

Grey Matter CLI is powered by Cobraarrow-up-right which can generate shell completions for multiple shells. The currently supported shells are:

  • Bash

  • Zsh

  • Fish

  • PowerShell

The detailed instruction is located herearrow-up-right.

Usage:

greymatter utils completion [bash|zsh|fish|powershell]

To see how to use the script that was generated by above command, see the help by running:

greymatter utils completion -h

Bash

To load completions for each session, execute once:

Linux

MacOS

Note for bash completion, you may need to install a newer version of bash-completion. If you're using the Homebrew version of bash, simply

and add

to your ~/.bashrc.

Zsh

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

To load completions for each session, execute once:

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

Fish

To load completions for each session, execute once:

Note that you do need at least Fish 3.1.0 for this to work.

PowerShell

Please refer to PowerShell Completionsarrow-up-right for details.

Last updated

Was this helpful?