Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo command shorthands don't have bash completion #9086

Closed
relrelb opened this issue Jan 18, 2021 · 0 comments · Fixed by #9951
Closed

Cargo command shorthands don't have bash completion #9086

relrelb opened this issue Jan 18, 2021 · 0 comments · Fixed by #9951
Labels
A-completions Area: shell completions C-bug Category: bug

Comments

@relrelb
Copy link
Contributor

relrelb commented Jan 18, 2021

Problem
Currently cargo has bash completion for most (if not all) builtin commands such as build, run, check etc.
However, it doesn't have bash completion for the short forms of these commands, such as b, r, c etc.

Steps

  1. In bash, type cargo build <tab>. Some completions should appear.
  2. Now type cargo b <tab>. This time no completions appear.

Possible Solution(s)
I expect the exact same completions to appear also for command shorthands.

@relrelb relrelb added the C-bug Category: bug label Jan 18, 2021
@ehuss ehuss added the A-completions Area: shell completions label Feb 13, 2021
@relrelb relrelb changed the title Cargo command shorthands doesn't have bash completion Cargo command shorthands don't have bash completion Oct 1, 2021
bors added a commit that referenced this issue Oct 1, 2021
Add shell completion for shorthand commands

Currently `cargo` has shell completion for most (if not all) builtin commands such as `build`, `run`, `check` etc.
However, it doesn't have shell completion for the short forms of these commands, such as `b`, `r`, `c` etc.

This PR adds both bash and zsh completions for command shorthands.

Fixes #9086.
@bors bors closed this as completed in 6a61ca5 Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-completions Area: shell completions C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants