completions: Zsh is now supported (#2173)

This commit is contained in:
clubby789 2024-12-27 01:03:10 +00:00 committed by GitHub
parent 6af30f87b7
commit b746f63983
1 changed files with 1 additions and 3 deletions

View File

@ -376,11 +376,9 @@ pkgs.mkShell {
## Shell Completions ## Shell Completions
If you use Bash, Fish or PowerShell, you can find automatically-generated shell If you use Bash, Zsh, Fish or PowerShell, you can find automatically-generated shell
completion scripts for `x.py` in completion scripts for `x.py` in
[`src/etc/completions`](https://github.com/rust-lang/rust/tree/master/src/etc/completions). [`src/etc/completions`](https://github.com/rust-lang/rust/tree/master/src/etc/completions).
Zsh support will also be included once issues with
[`clap_complete`](https://crates.io/crates/clap_complete) have been resolved.
You can use `source ./src/etc/completions/x.py.<extension>` to load completions You can use `source ./src/etc/completions/x.py.<extension>` to load completions
for your shell of choice, or `& .\src\etc\completions\x.py.ps1` for PowerShell. for your shell of choice, or `& .\src\etc\completions\x.py.ps1` for PowerShell.