You've already forked personal-linux-config
added ability to dynamically source files from file in home directory
added explanation and example in README.md
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
# 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
|
||||
. "${source}"
|
||||
done
|
||||
. "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)/terminal_fancyfying_${TERMINAL_FANCYFY}"
|
||||
|
||||
# If the file ~/.bash_sources exist, source every line it contains
|
||||
if [ -f ~/.bash_sources ]; then
|
||||
while IFS= read -r line; do
|
||||
# Skip empty lines and comments (#)
|
||||
if [ -n "$line" ] && ! [[ "$line" == \#* ]]; then
|
||||
. "$line"
|
||||
fi
|
||||
done < ~/.bash_sources
|
||||
fi
|
||||
|
Reference in New Issue
Block a user