diff --git a/etc_bash_rc b/etc_bash_rc new file mode 100644 index 0000000..9c12223 --- /dev/null +++ b/etc_bash_rc @@ -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