Include profile in bashrc even if not running interactively

main
Buddy Sandidge 2 years ago
parent f609cbde9a
commit d331a7efff

@ -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"

Loading…
Cancel
Save