Skip to main content
warning

Documentation is currently for moon v2. If you are using v1, some of the examples and settings may differ in syntax and functionality.

completions

The moon completions command will generate moon command and argument completions for your current shell. This command will write to stdout, which can then be redirected to a file of your choice.

$ moon completions > ./path/to/write/to

Options

  • --shell - Shell to explicitly generate for.

Examples

If using bash-completion.

mkdir -p ~/.bash_completion.d
moon completions > ~/.bash_completion.d/moon.sh

Otherwise write the file to a common location, and source it in your profile.

mkdir -p ~/.bash_completions
moon completions > ~/.bash_completions/moon.sh

# In your profile
source ~/.bash_completions/moon.sh