should use `&` to load completions for PowerShell (#1978)

This commit is contained in:
听寒 2024-06-04 13:31:05 +08:00 committed by GitHub
parent 6a7374bd87
commit 99d2ed7965
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ Zsh support will also be included once issues with [`clap_complete`](https://cra
You can use `source ./src/etc/completions/x.py.<extension>`
to load completions for your shell of choice,
or `source .\src\etc\completions\x.py.ps1` for PowerShell.
or `& .\src\etc\completions\x.py.ps1` for PowerShell.
Adding this to your shell's startup script (e.g. `.bashrc`) will automatically load this completion.
[`src/etc/rust_analyzer_settings.json`]: https://github.com/rust-lang/rust/blob/master/src/etc/rust_analyzer_settings.json