From a92a91b016ba6ea0942c81dfdd2b3e17ce98ebca Mon Sep 17 00:00:00 2001 From: 听寒 <10476912+hycinth22@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:31:05 +0800 Subject: should use `&` to load completions for PowerShell (#1978) --- src/doc/rustc-dev-guide/src/building/suggested.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/doc/rustc-dev-guide') diff --git a/src/doc/rustc-dev-guide/src/building/suggested.md b/src/doc/rustc-dev-guide/src/building/suggested.md index d6f52ee56f2..884e4915d34 100644 --- a/src/doc/rustc-dev-guide/src/building/suggested.md +++ b/src/doc/rustc-dev-guide/src/building/suggested.md @@ -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.` 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 -- cgit 1.4.1-3-g733a5