From d331a7effff9ece29c5afb07c7b4d9e8ea73126f Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Fri, 26 May 2023 17:30:36 -0700 Subject: [PATCH] Include profile in bashrc even if not running interactively --- dot_bashrc.tmpl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dot_bashrc.tmpl b/dot_bashrc.tmpl index 9e35b6d..05c095b 100644 --- a/dot_bashrc.tmpl +++ b/dot_bashrc.tmpl @@ -1,10 +1,11 @@ #!/usr/bin/env bash -# If not running interactively, don't do anything -[ -z "$PS1" ] && return . "${HOME}/.profile" -{{ if not (lookPath "starship") -}} +# if not running interactively, don't do anything more +[ -z "$PS1" ] && return + +{{- if not (lookPath "starship") }} if [[ -f "${XDG_CONFIG_HOME}/bash/prompt.sh" ]]; then # shellcheck disable=SC1090 source "${XDG_CONFIG_HOME}/bash/prompt.sh"