diff --git a/etc_bash_rc b/etc_bash_rc index fed928f..f21d4e3 100644 --- a/etc_bash_rc +++ b/etc_bash_rc @@ -1,6 +1,7 @@ #!/bin/bash +script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) # Load other bashrc files -for bashrc_file in $(find /etc/bashrc.d -type f | sort | grep -v ~$) +for bashrc_file in $(find "${script_dir}/bashrc.d" -type f | sort | grep -v ~$) do if [ -n "${bashrc_file}" ]; then # shellcheck disable=SC1090