From 42245040f683bf11688f3731037d0e933fa562fa Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 6 May 2025 14:16:22 +0900 Subject: [PATCH] system: Source scripts from the /etc/bashrc.d directory. * gnu/system.scm (operating-system-etc-service): : Source scripts from the /etc/bashrc.d directory. Change-Id: I27a20a8eae5d736f32e0df55a68529d9bb613b7a --- gnu/system.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gnu/system.scm b/gnu/system.scm index 8c76912d809..a571fe4fc75 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -9,7 +9,7 @@ ;;; Copyright © 2020 Danny Milosavljevic ;;; Copyright © 2020, 2021 Brice Waegeneire ;;; Copyright © 2020 Florian Pelz -;;; Copyright © 2020, 2022 Maxim Cournoyer +;;; Copyright © 2020, 2022, 2025 Maxim Cournoyer ;;; Copyright © 2020, 2023 Janneke Nieuwenhuizen ;;; Copyright © 2020, 2022, 2025 Efraim Flashner ;;; Copyright © 2021 Maxime Devos @@ -1162,7 +1162,13 @@ then # completion loader that searches its own completion files as well # as those in ~/.guix-profile and /run/current-system/profile. source /run/current-system/profile/etc/profile.d/bash_completion.sh -fi\n"))) +fi + +for i in /etc/bashrc.d/*.sh; do + [[ -r $i ]] && source \"$i\" +done +unset i +"))) (service etc-service-type `(("os-release" ,os-release) ("services" ,(file-append net-base "/etc/services"))