From 0fdff170378c37ef1ac6251bf720561d5a4c3907 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 10 Jan 2026 18:35:01 +0100 Subject: [PATCH] Inject block into global bash configuration files Inject block into /etc/bash.bashrc and $HOME/bash.bashrc. --- .templates/00-global_var.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.templates/00-global_var.sh b/.templates/00-global_var.sh index a739884e9..c2b2f9221 100755 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -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 # ################