chore: .env sourcing early
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user