mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
oh-my-bash.sh: fix reading of custom/lib files
This commit is contained in:
committed by
Koichi Murase
parent
f4a24a11de
commit
7ddf334013
@@ -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
|
||||
|
Reference in New Issue
Block a user