Start cleaning up dotfiles

This commit is contained in:
Nick Chambers 2024-05-12 20:52:59 -05:00
parent 6b2cc7ff9e
commit 2ccdb553a0
8 changed files with 10 additions and 6 deletions

16
.bashrc
View File

@ -1,9 +1,13 @@
###
# Disable rc file in non-interactive mode.
###
if [[ $- != *i* ]]; then
return
fi
###
# Default Environment
# Apply default environment.
###
__dotlib_set_PATH() {
@ -43,7 +47,7 @@ __dotlib_set_SHOPTS
ulimit -c unlimited
###
# Library loader
# Load the dot library.
###
__dotlib_load_libraries() {
@ -58,9 +62,9 @@ __dotlib_load_libraries() {
esac
dots=(
~/bin/dotlib/generic-pre/*.sh
~/bin/dotlib/"$os"/*.sh
~/bin/dotlib/generic-post/*.sh
~/.config/dotlib/pre/*.sh
~/.config/dotlib/"$os"/*.sh
~/.config/dotlib/post/*.sh
)
for dot in "${dots[@]}"; do
@ -71,7 +75,7 @@ __dotlib_load_libraries() {
__dotlib_load_libraries
###
# Reset exit status
# Reset the exit status.
###
true