From 897c6f9cb63c82e124e4d296f433fa7cd0838d6c Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sun, 10 Sep 2023 12:01:37 +0300 Subject: [PATCH] Add etc bashrc --- etc_bash_rc | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 etc_bash_rc 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