mirror of
https://github.com/opensiriusfox/bashrc.d.git
synced 2025-06-17 04:40:32 -07:00
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:
parent
4a75f67b98
commit
148ef9e7ba
6 changed files with 60 additions and 5 deletions
13
0-loader
13
0-loader
|
@ -1,13 +0,0 @@
|
|||
#!/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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue