mirror of
https://github.com/opensiriusfox/bashrc.d.git
synced 2025-06-16 12:20:24 -07:00
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.
13 lines
460 B
Bash
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
|
|
|