Skip to content

Commit f1e6378

Browse files
clubby789jyn514
authored andcommitted
Add note about shell completion scripts
1 parent ee52853 commit f1e6378

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/building/suggested.md

+10
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,13 @@ 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>`
349+
to load completions for your shell of choice,
350+
or `source .\src\etc\completions\x.py.ps1` for PowerShell.
351+
Adding this to your shell's startup script (e.g. `.bashrc`) will automatically load this completion.

0 commit comments

Comments
 (0)