Add etc bashrc

This commit is contained in:
Antonio J. Delgado 2023-09-10 12:01:37 +03:00
parent 376f3ecc24
commit 897c6f9cb6

10
etc_bash_rc Normal file
View file

@ -0,0 +1,10 @@
#!/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