Skip to content

Commit fbd7d9b

Browse files
authored
doc: Update instructions on using native-completions
`~/.local/share/bash-completion/completions/cargo` is more sensible, and [recommended by rustup](https://github.com/rust-lang/rustup/blob/e4f3ad6f893e56ca10f0a329c401a5eafab69607/src/cli/help.rs#L275).
1 parent 8bf154c commit fbd7d9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/src/reference/unstable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,10 +1816,10 @@ When in doubt, you can discuss this in [#14520](https://github.com/rust-lang/car
18161816

18171817
### How to use native-completions feature:
18181818
- bash:
1819-
Add `source <(CARGO_COMPLETE=bash cargo +nightly)` to your .bashrc.
1819+
Add `source <(CARGO_COMPLETE=bash cargo +nightly)` to `~/.local/share/bash-completion/completions/cargo`.
18201820

18211821
- zsh:
1822-
Add `source <(CARGO_COMPLETE=zsh cargo +nightly)` to your .zshrc.
1822+
Add `source <(CARGO_COMPLETE=zsh cargo +nightly)` to your `.zshrc`.
18231823

18241824
- fish:
18251825
Add `source (CARGO_COMPLETE=fish cargo +nightly | psub)` to `$XDG_CONFIG_HOME/fish/completions/cargo.fish`

0 commit comments

Comments
 (0)