2025-05-22 17:56:05 -05:00

38 lines
1.2 KiB
Bash

# _ _
# | |__ __ _ ___| |__ _ __ ___
# | '_ \ / _` / __| '_ \| '__/ __|
# _| |_) | (_| \__ \ | | | | | (__
# (_)_.__/ \__,_|___/_| |_|_| \___|
#
# -----------------------------------------------------
# ML4W bashrc loader
# -----------------------------------------------------
# DON'T CHANGE THIS FILE
# You can define your custom configuration by adding
# files in ~/.config/bashrc
# or by creating a folder ~/.config/bashrc/custom
# with copies of files from ~/.config/bashrc
# You can also create a .bashrc_custom file in your home directory
# -----------------------------------------------------
# -----------------------------------------------------
# Load modular configarion
# -----------------------------------------------------
for f in ~/.config/bashrc/*; do
if [ ! -d $f ] ;then
c=`echo $f | sed -e "s=.config/bashrc=.config/bashrc/custom="`
[[ -f $c ]] && source $c || source $f
fi
done
# -----------------------------------------------------
# Load single customization file (if exists)
# -----------------------------------------------------
if [ -f ~/.bashrc_custom ] ;then
source ~/.bashrc_custom
fi