Files
Modular-Bashrc-Manager/installer/00_default.sh

28 lines
1.2 KiB
Bash

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"