oh-my-bash.sh: fix reading of custom/lib files

This commit is contained in:
Reuben Thomas
2020-07-18 11:21:34 +01:00
committed by Koichi Murase
parent f4a24a11de
commit 7ddf334013

View File

@@ -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