From 4f8e92d39891c2517858a477b84d6d1392a0d6b5 Mon Sep 17 00:00:00 2001 From: Michael Ochmann Date: Thu, 2 Jan 2025 20:49:55 +0100 Subject: [PATCH] added loading of bash_profile when not in login shell --- .bashrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 83e1af8..02dc0ce 100644 --- a/.bashrc +++ b/.bashrc @@ -48,23 +48,31 @@ export PATH="$PATH:/Users/mochmann/.dotnet/tools" export PATH="/usr/local/opt/mysql@5.7/bin:$PATH" export PATH="/usr/local/opt/libpq/bin:$PATH" export PATH="/usr/local/share/dotnet:$PATH" -export CC=clang -export CXX=clang++ export PATH="/usr/local/lib/python3.9/site-packages:$PATH" export PATH="/usr/local/Cellar/mono/6.12.0.122_1/bin/:$PATH" export PATH="~/.composer/vendor/bin:$PATH" export PATH="~/apps:$PATH" export PATH="~/apps/instantclient:$PATH" +export PATH="/opt/homebrew/opt/llvm/bin:$PATH" + +export CC=clang +export CXX=clang++ +export CMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ if [[ "$OSTYPE" == "darwin"* ]] then export PATH="/Applications/Emacs.app/Contents/MacOS:$PATH" + export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib" fi if [ -f ~/.venv/bin/activate ]; then source ~/.venv/bin/activate fi +shopt -q login_shell +if [ $? -ne 0 ]; then + source ~/.bash_profile +fi # COLORS