From 75d31a07bba7f55737198532bf2a25dc72a6d33b Mon Sep 17 00:00:00 2001 From: Charles Celerier Date: Mon, 28 Apr 2014 12:57:45 -0400 Subject: [PATCH] bash_it.sh: Patched changes made to support custom.*.bash files. Code was added to support loading custom.{aliases,completion,plugins}.bash from their respective directories in 46f6701a3. The change made in that commit does not wait until the enabled {aliases,completion,plugins}/*.bash files are loaded before sourcing the custom.*.bash files, which was the case before. This patch fixes any issues caused by that change by loading the enabled *.bash files and custom *.bash files in two successive for loops. --- bash_it.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bash_it.sh b/bash_it.sh index aed180df..e225fd7c 100755 --- a/bash_it.sh +++ b/bash_it.sh @@ -38,11 +38,15 @@ do source $config_file done -# Load enabled and custom aliases, completion, plugins +# Load enabled aliases, completion, plugins for file_type in "aliases" "completion" "plugins" do _load_bash_it_files $file_type +done +# Load custom aliases, completion, plugins +for file_type in "aliases" "completion" "plugins" +do if [ -e "${BASH_IT}/${file_type}/custom.${file_type}.bash" ] then source "${BASH_IT}/${file_type}/custom.${file_type}.bash"