From a537cfacb4ca9ac9b188bf52f8778a03aeedd934 Mon Sep 17 00:00:00 2001 From: scbj Date: Mon, 2 Jun 2025 12:10:01 +0200 Subject: [PATCH] (bash-conf-[private/work]) added scripts to path, removed sourcing of `.bashrc` --- bash-conf-private/.bash_profile | 6 ++++-- bash-conf-work/.bash_profile | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bash-conf-private/.bash_profile b/bash-conf-private/.bash_profile index aade2e5..ebf2443 100644 --- a/bash-conf-private/.bash_profile +++ b/bash-conf-private/.bash_profile @@ -2,8 +2,10 @@ # ~/.bash_profile # -if [[ -n "$USER" ]]; then - source "/home/$USER/.bashrc" +scripts="${HOME}/dotfiles/scripts" +if [[ -d "${scripts}" ]]; then + export PATH="${PATH}:${scripts}" fi +unset scripts export PATH="$PATH:$HOME/repos/jlink" diff --git a/bash-conf-work/.bash_profile b/bash-conf-work/.bash_profile index d13088e..b752cb3 100644 --- a/bash-conf-work/.bash_profile +++ b/bash-conf-work/.bash_profile @@ -3,6 +3,12 @@ # # extend paths +scripts="${HOME}/dotfiles/scripts" +if [[ -d "${scripts}" ]]; then + export PATH="${PATH}:${scripts}" +fi +unset scripts + export PATH="$PATH:$HOME/tools/Xilinx/Vivado/2021.1/bin" export PATH="$PATH:$HOME/tools/jlink_linux"