1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-24 06:40:07 +00:00
ohmyzsh/plugins/rust
Marc Cornellà d3bb52d7d8
style: declare globals properly
By default, `typeset` defines variables locally unless in the main scope.
This is specially bad when using `omz plugin load`, which happens inside
a function, so the declared variables don't continue being defined when
the function finishes and the main scope reappears.
2022-01-05 09:23:54 +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 style: declare globals properly 2022-01-05 09:23:54 +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)