feat(plugin): add rust
This commit is contained in:
parent
9f3b8c5de8
commit
33ce3aa836
1 changed files with 16 additions and 0 deletions
16
plugins/rust
Normal file
16
plugins/rust
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#
|
||||||
|
# rust
|
||||||
|
#
|
||||||
|
|
||||||
|
# Add Cargo binary directory to PATH
|
||||||
|
if command -v cargo &> /dev/null; then
|
||||||
|
# set CARGO_HOME if not set
|
||||||
|
if [ -z "${CARGO_HOME}" ]; then
|
||||||
|
export CARGO_HOME="$HOME/.cargo"
|
||||||
|
fi
|
||||||
|
|
||||||
|
path+=("$CARGO_HOME/bin")
|
||||||
|
export PATH
|
||||||
|
fi
|
||||||
|
|
||||||
|
# vim: ft=zsh expandtab tabstop=2 shiftwidth=2
|
Loading…
Reference in a new issue