From 506c5d181151dc509bd4be4b0b2196ac954344e0 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Tue, 17 Aug 2021 20:36:57 -0700 Subject: [PATCH] Update rust env based on current rustup version --- rust/.config/profile/env.d/rust.env | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rust/.config/profile/env.d/rust.env b/rust/.config/profile/env.d/rust.env index 2d50150..8a2d263 100644 --- a/rust/.config/profile/env.d/rust.env +++ b/rust/.config/profile/env.d/rust.env @@ -1 +1,5 @@ -PATH="${PATH}:${HOME}/.cargo/bin" +#!/usr/bin/env bash + +if [[ -f "${HOME}/.cargo/env" ]]; then + . "${HOME}/.cargo/env" || exit 1 +fi