You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
830 B
Cheetah
35 lines
830 B
Cheetah
4 years ago
|
#!/usr/bin/env bash
|
||
12 years ago
|
# If not running interactively, don't do anything
|
||
|
[ -z "$PS1" ] && return
|
||
|
|
||
2 years ago
|
. "${HOME}/.profile"
|
||
3 years ago
|
|
||
2 years ago
|
{{ if not (lookPath "starship") -}}
|
||
4 years ago
|
if [[ -f "${XDG_CONFIG_HOME}/bash/prompt.sh" ]]; then
|
||
|
# shellcheck disable=SC1090
|
||
|
source "${XDG_CONFIG_HOME}/bash/prompt.sh"
|
||
4 years ago
|
fi
|
||
2 years ago
|
{{- end }}
|
||
4 years ago
|
|
||
|
if [ -d "${XDG_CONFIG_HOME}"/bash/bashrc.d ]; then
|
||
|
for file in "${XDG_CONFIG_HOME}"/bash/bashrc.d/*.sh; do
|
||
|
if [ -r "$file" ]; then
|
||
|
#shellcheck disable=1090
|
||
|
. "$file"
|
||
|
fi
|
||
|
done
|
||
|
fi
|
||
|
|
||
|
if [[ -d "${XDG_CONFIG_HOME}/bash/env.d" ]]; then
|
||
|
for file in "${XDG_CONFIG_HOME}"/bash/env.d/*.env; do
|
||
|
eval "$(
|
||
|
grep -v '^\s*\#' "${file}" |
|
||
|
grep -v '^\s*$' |
|
||
|
sed 's/^\s*export//g' |
|
||
|
sed 's/^/export /g'
|
||
|
)"
|
||
|
done
|
||
|
fi
|
||
2 years ago
|
|
||
|
# vim: ft=bash
|