From 7ddf3340139bf28f158f73f3f16d16bc586d5349 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Sat, 18 Jul 2020 11:21:34 +0100 Subject: [PATCH] oh-my-bash.sh: fix reading of custom/lib files --- oh-my-bash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oh-my-bash.sh b/oh-my-bash.sh index 9e3d77c..a308386 100644 --- a/oh-my-bash.sh +++ b/oh-my-bash.sh @@ -31,7 +31,7 @@ fi # Load all of the config files in ~/.oh-my-bash/lib that end in .sh # TIP: Add files you don't want in git to .gitignore for config_file in $OSH/lib/*.sh; do - custom_config_file="${OSH_CUSTOM}/lib/${config_file:t}" + custom_config_file="${OSH_CUSTOM}/lib/$(basename "${config_file}")" [ -f "${custom_config_file}" ] && config_file=${custom_config_file} source $config_file done