Closed itacud95 closed 1 year ago
Installing /home/jk/.cargo/bin/_cargo_completion
...
bash: _cargo_completion: command not found
I'm guessing /home/jk/.cargo/bin
is not on your $PATH
. You can either add it, or perhaps (I haven't tested this, but I don't see why it wouldn't work) modify the complete -C _cargo_completion cargo
setup to provide the full path to _cargo_completion
, as in complete -C /home/jk/.cargo/bin/_cargo_completion cargo
.
Yes, you are right!
This returns nothing: echo $PATH | grep .cargo
And your command works as expected:
complete -C /home/jk/.cargo/bin/_cargo_completion cargo
cargo run --
--all-features --example --help --manifest-path --package --target
--bin --features --jobs --message-format --quiet --target-dir
--color --frozen --locked --no-default-features --release --verbose
I am having issues running the example from the documentation.
Here is my chain of commands:
Now, running it with
cargo run --<tab>
does not work as intended:What am I doing wrong?