jammy-setup/bashrc.d.sh

9 lines
245 B
Bash
Executable File

mkdir -p ~/.bashrc.d
chmod 700 ~/.bashrc.d
echo >> ~/.bashrc
echo '# Load additional scripts from ~/.bashrc.d/' >> ~/.bashrc
echo 'for file in ~/.bashrc.d/*.bashrc; do' >> ~/.bashrc
echo ' source "$file"' >> ~/.bashrc
echo 'done' >> ~/.bashrc