Inject block into global bash configuration files

Inject block into /etc/bash.bashrc and $HOME/bash.bashrc.
This commit is contained in:
Alexandre
2026-01-10 18:35:01 +01:00
committed by GitHub
parent 0866efe4cf
commit 0fdff17037

View File

@@ -300,6 +300,13 @@ done
update_scripts_with_block
# --- MINIMAL CHANGE: also inject into /etc/bash.bashrc (for interactive bash shells)
mkdir -p /etc "$HOME"
touch "/etc/bash.bashrc"
touch "$HOME/bash.bashrc"
inject_block_into_file "/etc/bash.bashrc"
inject_block_into_file "$HOME/bash.bashrc"
################
# Set timezone #
################