From 9797d84109c7b34c58eaace7127d59c31ec38ffe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sven=20M=C3=A4der?= <maeder@phys.ethz.ch>
Date: Fri, 20 Sep 2024 11:46:00 +0200
Subject: [PATCH] Add python and rust(cargo) env to PATH

---
 profile/rda/envrcd.d/10-envvars | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/profile/rda/envrcd.d/10-envvars b/profile/rda/envrcd.d/10-envvars
index 465995e..4ac4fda 100644
--- a/profile/rda/envrcd.d/10-envvars
+++ b/profile/rda/envrcd.d/10-envvars
@@ -97,9 +97,15 @@ export BAT_THEME='DarkNeon'
 # --- ansible ---
 if [[ "${ENVRCD_USER}" == "rda" ]] && [[ "${USER}" == "maedersv" || "${USER}" == "rda" ]]; then
     #export ANSIBLE_CONFIG="~/.ansible.cfg"
-    if [ -d "$HOME/.local/bin" ]; then
+    if [ -d "${HOME}/.cargo/env" ]; then
+        export PATH="${HOME}/.cargo/env:${PATH}"
+    fi
+    if [ -d "${HOME}/.local/bin" ]; then
         export PATH="${HOME}/.local/bin:${PATH}"
     fi
+    if [ -d "${HOME}/env/pyenv/bin" ]; then
+        export PATH="${HOME}/env/pyenv/bin:${PATH}"
+    fi
     export ANSIBLE_STRATEGY_PLUGINS="~/.ansible/mitogen/ansible_mitogen/plugins/strategy"
     export ANSIBLE_STRATEGY="mitogen_linear"
     export ANSIBLE_ISG_PHYS_PATH="~/git/ansible-isg-phys"
-- 
GitLab