completion(1) General Commands Manual completion(1)

completion - Generate completion script for the give shell(s) to the given directory

completion [-d|--dir] [-h|--help] [SHELLS]

Generate completion script for the give shell(s) to the given directory.

This command allows you to generate completion script for a given shell. The script is printed to the standard output. If you want to write it to a file, just use unix redirection.

Save completion script to the given directory
Print help (see a summary with '-h')
[SHELLS]
Shell for which completion script should be generated for

Possible values:

  • bash
  • elvish
  • fish
  • powershell
  • zsh
completion