added new feature and scripts

This commit is contained in:
2026-03-31 16:44:26 +01:00
parent 53aa364139
commit 782aff492c
6 changed files with 897 additions and 388 deletions

27
installer/00_default.sh Normal file
View File

@@ -0,0 +1,27 @@
echo "Welcome to the Modular Bashrc script!"
echo "In order to keep more clean as possibile you file bashrc, please copy all the bashrc (everything abot the beginning of the following entries:"
echo "--------------------------------------------------------------"
echo '
# Modular Bashrc
mkdir -p ~/.bashrc.d/scripts-needed
mkdir -p ~/.bashrc.d/scripts-enabled
mkdir -p ~/.bashrc.d/scripts-available
if [ -d ~/.bashrc.d ]; then
for needed in ~/.bashrc.d/scripts-needed/*.sh; do
[ -r "$needed" ] && source "$needed"
done
unset needed
for file in ~/.bashrc.d/scripts-enabled/*.sh; do
[ -r "$file" ] && source "$file"
done
unset file
fi'
echo "---------------------------------------------------------------"
echo "in the ~/.bashrc.d/script-available/00_default.sh"
echo "(Please note that this bit has been added once you installed the Modular Bashrc!)"
echo ""
echo "This way, you .bashrc will be keeped clean and tidy!"
echo "Enjoy!"
echo "Simone Cusano!"
echo "https://sld-server.org"