mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
doc: Mention XDG_DATA_HOME
Ref: [bash-completion](89aa18b154/README.md (L153-L161)
)
This commit is contained in:
parent
fbd7d9b938
commit
15a7672dde
@ -1816,7 +1816,7 @@ When in doubt, you can discuss this in [#14520](https://github.com/rust-lang/car
|
||||
|
||||
### How to use native-completions feature:
|
||||
- bash:
|
||||
Add `source <(CARGO_COMPLETE=bash cargo +nightly)` to `~/.local/share/bash-completion/completions/cargo`.
|
||||
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.
|
||||
|
||||
- zsh:
|
||||
Add `source <(CARGO_COMPLETE=zsh cargo +nightly)` to your `.zshrc`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user