1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-22 20:31:57 +00:00
ohmyzsh/plugins/rust
Joey Territo c6e7f8905f
fix(rust): fix cargo completion when sysroot contains spaces (#10571)
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.
2022-01-08 20:03:32 +01:00
..
_rustc refactor(rust)!: merge cargo and rustup plugins into rust plugin (#10270) 2021-12-28 12:05:04 +01:00
README.md refactor(rust)!: merge cargo and rustup plugins into rust plugin (#10270) 2021-12-28 12:05:04 +01:00
rust.plugin.zsh fix(rust): fix cargo completion when sysroot contains spaces (#10571) 2022-01-08 20:03:32 +01:00

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)