Added a builder script

The build script reduces the amount of IO on the disk when starting a new bash session.
This should speed up the startup time of the shell when under heavy IO load. There is
also a short reloader command that calls the builder script when things are modified to
avoid hot reloading of the scripts in the directory.
This commit is contained in:
Luke 2021-12-28 11:32:30 -08:00
parent 4a75f67b98
commit 148ef9e7ba
6 changed files with 60 additions and 5 deletions

13
archive/0-loader Normal file
View file

@ -0,0 +1,13 @@
#!/bin/bash
# These lines are to be appended to the default Ubuntu bashrc script
# the only line I add to modify this file Add this file to the end of your
# .bashrc to get whatever the defaults are there, then this scrilt will
# scrape your .bashrc.d directory for *.sh files and load them into your
# enviornment.
if [[ -e ${HOME}/.bashrc.d ]]; then
for __import_file in "${HOME}/.bashrc.d/"*".sh"; do
source $__import_file
done
unset __import_file
fi