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

Bash autocomplete does not work correctly #6461

Closed
pavel-zhigulin opened this issue Dec 19, 2018 · 0 comments · Fixed by #6462
Closed

Bash autocomplete does not work correctly #6461

pavel-zhigulin opened this issue Dec 19, 2018 · 0 comments · Fixed by #6462

Comments

@pavel-zhigulin
Copy link
Contributor

Problem
In bash, when you pressing twice you'll get non-exist commands in autocomplete (such a, and, all, etc)

Steps

  1. run bash
  2. write cargo and press key twice
  3. check output:
$ cargo
Display all 148 possibilities? (y or n)
(src/main.rs)      binary             crate              file               If                 local              not                qualified          Save               uninstall
<path>             build              crates.io          files              in                 locally.           of                 read               search             unit
a                  Build              Create             fix                including          locate-project     on                 read-manifest      Search             update
all                by                 custom             flags.             index              location           Output             recorded           Show               Update
an                 cargo              dependencies       fmt                information        lock               overrides,         registry           specification      Upload
and                Cargo.toml         directory          for                init               lockfile           owner              Remove             specified          used
api                check              distributable      format             install            login              owners             reported           specified,         using
artifacts          Check              doc                from               Install            machine-readable   package            repository         stdin.             verify-project
as                 Checkout           documentation      fully              integration        main               package,           representation     tarball            version
Assemble           clean              documentation,     Generate           into               Manage             packages           resolved           test               versions
at                 clippy             errors             generated          is                 manifest           past               run                tests              warnings
Automatically      Compile            Execute            generate-lockfile  it                 manifest.          pkgid              Run                that               will
be                 concrete           existing           Git                its                metadata           Print              Rust               the                yank
bench              copy               fetch              git-checkout       JSON               network            publish            rustc              to
benchmarks         correctness        Fetch              has                lint               new                pushed             rustdoc            token

Output of cargo version:
cargo 1.31.0 (339d9f9 2018-11-16)

OS: Linux (bash) / Windows (Cygwin)

bors added a commit that referenced this issue Dec 20, 2018
[issue#6461] Fix cargo commands list

Fixes #6461 -  cargo autocompletion script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant