Skip to content

Commit 9313fde

Browse files
committed
Add note about shell completion scripts
1 parent 28dbeaf commit 9313fde

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/building/suggested.md

+9
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,12 @@ pkgs.mkShell {
339339
RUST_BOOTSTRAP_CONFIG = config;
340340
}
341341
```
342+
343+
## Shell Completions
344+
345+
If you use Bash, Fish or PowerShell, you can find automatically-generated shell completion scripts for `x.py` in [`src/etc/completions`](https://github.com/rust-lang/rust/tree/master/src/etc/completions).
346+
Zsh support will also be included once issues with [`clap_complete`](https://crates.io/crates/clap_complete) have been resolved.
347+
348+
You can use `source ./src/etc/completions/x.py.<extension>` to load completions for your shell of choice,
349+
or `source .\src\etc\completions\x.py.ps1` for PowerShell.
350+
Adding this to your shell's startup script (e.g. `.bashrc`) will automatically load this completion.

0 commit comments

Comments
 (0)