Start cleaning up dotfiles
This commit is contained in:
parent
6b2cc7ff9e
commit
2ccdb553a0
8 changed files with 10 additions and 6 deletions
16
.bashrc
16
.bashrc
|
@ -1,9 +1,13 @@
|
||||||
|
###
|
||||||
|
# Disable rc file in non-interactive mode.
|
||||||
|
###
|
||||||
|
|
||||||
if [[ $- != *i* ]]; then
|
if [[ $- != *i* ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###
|
###
|
||||||
# Default Environment
|
# Apply default environment.
|
||||||
###
|
###
|
||||||
|
|
||||||
__dotlib_set_PATH() {
|
__dotlib_set_PATH() {
|
||||||
|
@ -43,7 +47,7 @@ __dotlib_set_SHOPTS
|
||||||
ulimit -c unlimited
|
ulimit -c unlimited
|
||||||
|
|
||||||
###
|
###
|
||||||
# Library loader
|
# Load the dot library.
|
||||||
###
|
###
|
||||||
|
|
||||||
__dotlib_load_libraries() {
|
__dotlib_load_libraries() {
|
||||||
|
@ -58,9 +62,9 @@ __dotlib_load_libraries() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
dots=(
|
dots=(
|
||||||
~/bin/dotlib/generic-pre/*.sh
|
~/.config/dotlib/pre/*.sh
|
||||||
~/bin/dotlib/"$os"/*.sh
|
~/.config/dotlib/"$os"/*.sh
|
||||||
~/bin/dotlib/generic-post/*.sh
|
~/.config/dotlib/post/*.sh
|
||||||
)
|
)
|
||||||
|
|
||||||
for dot in "${dots[@]}"; do
|
for dot in "${dots[@]}"; do
|
||||||
|
@ -71,7 +75,7 @@ __dotlib_load_libraries() {
|
||||||
__dotlib_load_libraries
|
__dotlib_load_libraries
|
||||||
|
|
||||||
###
|
###
|
||||||
# Reset exit status
|
# Reset the exit status.
|
||||||
###
|
###
|
||||||
|
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in a new issue