diff --git a/bashrc_overrides/_all b/bashrc_overrides/_all index de7f535..e435646 100644 --- a/bashrc_overrides/_all +++ b/bashrc_overrides/_all @@ -1,8 +1,9 @@ +_source_basedir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)" # Source all the overrides in this folder -for source in $(find "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)" -type f | grep -Ev "_all|terminal_fancyfying"); do +for source in $(find "${_source_basedir}" -type f | grep -Ev "_all|terminal_fancyfying"); do . "${source}" done -. "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)/terminal_fancyfying_${TERMINAL_FANCYFY}" +. "${_source_basedir}/terminal_fancyfying_${TERMINAL_FANCYFY}" # If the file ~/.bash_sources exist, source every line it contains if [ -f ~/.bash_sources ]; then