diff --git a/dotfiles/zsh/dot-zshenv b/dotfiles/zsh/dot-zshenv new file mode 100644 index 0000000..b265243 --- /dev/null +++ b/dotfiles/zsh/dot-zshenv @@ -0,0 +1,11 @@ +#!/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 \ No newline at end of file