chore: .env sourcing early

This commit is contained in:
2026-06-16 19:07:26 +02:00
parent 5b7de556ff
commit 3ebbf5b1a2
+7 -7
View File
@@ -1,3 +1,10 @@
# Source .env file early to export environment variables
if [ -f "$HOME/.env" ] ; then
set -a
source "$HOME/.env"
set +a
fi
if [ -d "$HOME/bin" ]; then if [ -d "$HOME/bin" ]; then
export PATH="$HOME/bin:$PATH" export PATH="$HOME/bin:$PATH"
fi fi
@@ -39,13 +46,6 @@ if [ -d "$HOME/scripts" ]; then
export PATH="$HOME/scripts:$PATH" export PATH="$HOME/scripts:$PATH"
fi fi
# Source .env file early to export environment variables
if [ -f "$HOME/.env" ] ; then
set -a
source "$HOME/.env"
set +a
fi
if [ -n "$BASH_VERSION" ]; then if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists # include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then if [ -f "$HOME/.bashrc" ]; then