my_bashrc/etc_bash_rc

11 lines
239 B
Text
Raw Normal View History

2023-09-10 11:01:37 +02:00
#!/bin/bash
# Set other bashrc files
mkdir -p "/etc/bashrc.d"
for bashrc_file in $(find /etc/bashrc.d -type f | sort | grep -v ~$)
do
if [ -n "${bashrc_file}" ]; then
# shellcheck disable=SC1090
source "${bashrc_file}"
fi
done