From 8720c4e4ca203a924582ee0cec100588b364aea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Fri, 8 Mar 2024 20:48:44 +0100 Subject: [PATCH] Better cargo env --- profile/.profile | 1 - zsh/.zshenv | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/profile/.profile b/profile/.profile index 84d3d3f..57b121f 100644 --- a/profile/.profile +++ b/profile/.profile @@ -17,4 +17,3 @@ export ZDOTDIR="$XDG_CONFIG_HOME"/zsh export XDG_CURRENT_DESKTOP=GNOME export OPENCV_LOG_LEVEL=ERROR export PATH="$HOME/.local/bin:$PATH" -. "$HOME/.cargo/env" diff --git a/zsh/.zshenv b/zsh/.zshenv index c2f3182..e8e716f 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -1 +1,3 @@ -. "$HOME/.cargo/env" +if [ -d "$HOME/.cargo/env" ]; then + . "$HOME/.cargo/env" +fi