Skip to content

Bash completions include description of the command in the completion #4456

@dsifford

Description

@dsifford

Describe the bug

Completions for bash include a description of the command in the completions. This requires a user to delete the entire description before he/she is able to enter the command.

$ gh --version
gh version 2.0.0 (2021-08-23)
https://github.com/cli/cli/releases/tag/v2.0.0

Steps to reproduce the behavior

In a terminal running bash.

  1. Type gh Tab
  2. See that the completion provided looks like this...
$ gh actions     (Learn about working with GitHub actions)

Tab

$ gh alias       (Create command shortcuts)

etc, etc

Expected vs actual behavior

The completion should not also include a description of the command for bash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedbugSomething isn't workingpriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions