You've already forked personal-linux-config
feat(bash): Improve source directory calculation in bashrc overrides
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
|
_source_basedir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
|
||||||
# Source all the overrides in this folder
|
# 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
|
for source in $(find "${_source_basedir}" -type f | grep -Ev "_all|terminal_fancyfying"); do
|
||||||
. "${source}"
|
. "${source}"
|
||||||
done
|
done
|
||||||
. "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)/terminal_fancyfying_${TERMINAL_FANCYFY}"
|
. "${_source_basedir}/terminal_fancyfying_${TERMINAL_FANCYFY}"
|
||||||
|
|
||||||
# If the file ~/.bash_sources exist, source every line it contains
|
# If the file ~/.bash_sources exist, source every line it contains
|
||||||
if [ -f ~/.bash_sources ]; then
|
if [ -f ~/.bash_sources ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user