code: def install_completion(ctx, attr, value):  # pragma: no cover
      
      import click_completion.core
  
      if not value or ctx.resilient_parsing:
          return value
  
      shell, path = click_completion.core.install()
      click.secho(
          '{0} completion installed in {1}'.format(shell, path), fg='green'
      )
      ctx.exit()
docs: Install completion for the current shell.