dotfiles/private_dot_bashrc.d/cargo.sh

12 lines
300 B
Bash
Raw Normal View History

2021-04-13 14:43:04 -04:00
#!/bin/sh
# rustup shell setup
# affix colons on either side of $PATH to simplify matching
case ":${PATH}:" in
*:"$HOME/.cargo/bin":*)
;;
*)
# Prepending path in case a system-installed rustc needs to be overridden
export PATH="$HOME/.cargo/bin:$PATH"
;;
esac