1 2 3 4 5 6 7 8 9 10 11
#!/usr/bin/env bash if [ -z "${PROFILE_SOURCED}" ] && [ -f "${HOME}"/.profile ]; then # shellcheck disable=SC1091 source "${HOME}/.profile" fi for i in "${HOME}"/.bash.d/*.bash; do # shellcheck disable=SC1090 [[ -r "${i}" ]] && source "${i}" done
Consider giving Nix/NixOS a try! <3