• Joey Territo's avatar
    fix(rust): fix `cargo` completion when sysroot contains spaces (#10571) · c6e7f890
    Joey Territo authored
    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.
    c6e7f890
rust.plugin.zsh 1.12 KB