From 23252e5b2833c622eb6271618d224329f2ae721f Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sat, 17 Sep 2022 20:01:28 -0700 Subject: [PATCH] env: auto source ~/.profile if it wasn't sourced --- .config/shell/env | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/shell/env b/.config/shell/env index 0f56cce..a83d73a 100644 --- a/.config/shell/env +++ b/.config/shell/env @@ -8,6 +8,10 @@ if ! [ -d "$SHELL_CONFIG_DIR" ]; then echo "FATAL ERROR: \$SHELL_CONFIG_DIR is not set to a real directory: $SHELL_CONFIG_DIR" >&2 fi +if [ -z "$PROFILE_LOADED" ] && [ -f ~/.profile ]; then + . ~/.profile +fi + # Intelligently set $EDITOR if command -v nvim > /dev/null;then export EDITOR=nvim