c6e7f8905f
When generating completions for Cargo, if the Rust sysroot (i.e. `rustc +${${(z)$(rustup default)}[1]} --print sysroot`) contains spaces, Cargo completions will not work because the spaces are not escaped, thus passing two arguments to the "source" command instead of one. The spaces need to be escaped for this to work. |
||
---|---|---|
.. | ||
README.md | ||
_rustc | ||
rust.plugin.zsh |
README.md
rust
This plugin adds completion for rustc
, the compiler for the Rust programming language, as well as for rustup
and cargo
if you have the Rust toolchain installed.
To use it, add rust
to the plugins array in your zshrc file:
plugins=(... rust)