Skip to content

Commit 056f5f4

Browse files
authored
Revert "doc: Mention XDG_DATA_HOME" (#15512)
This reverts commit 15a7672. ### What does this PR try to resolve? There was a miscommunication about some outstanding concerns with #15480 and it got merged before we were ready. Specifically - How important is this for unstable docs? - How universal is the use of `bash-completions` and what should we do for people who don't have it? - How likely is someone to catch that they don't have `XDG_DATA_HOME` set and get tripped up over this documentation - Should we be aligned with upstream clap? ### How should we test and review this PR? ### Additional information
2 parents c7a2aa3 + 05b18b4 commit 056f5f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/src/reference/unstable.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,7 @@ When in doubt, you can discuss this in [#14520](https://github.com/rust-lang/car
18171817

18181818
### How to use native-completions feature:
18191819
- bash:
1820-
Add `source <(CARGO_COMPLETE=bash cargo +nightly)` to `$XDG_DATA_HOME/bash-completion/completions/cargo`, or `~/.local/share/bash-completion/completions/cargo` if `XDG_DATA_HOME` is not set.
1820+
Add `source <(CARGO_COMPLETE=bash cargo +nightly)` to `~/.local/share/bash-completion/completions/cargo`.
18211821

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

0 commit comments

Comments
 (0)