bashrc.d/archive/0-loader
Luke 148ef9e7ba 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.
2021-12-28 11:32:30 -08:00

13 lines
460 B
Bash

#!/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