my_bashrc/etc_bash_rc

11 lines
306 B
Text
Raw Normal View History

2023-09-10 11:01:37 +02:00
#!/bin/bash
2023-09-10 11:49:01 +02:00
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
2023-09-10 11:44:53 +02:00
# Load other bashrc files
2023-09-10 11:49:01 +02:00
for bashrc_file in $(find "${script_dir}/bashrc.d" -type f | sort | grep -v ~$)
2023-09-10 11:01:37 +02:00
do
if [ -n "${bashrc_file}" ]; then
# shellcheck disable=SC1090
source "${bashrc_file}"
fi
done