diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-05-04 13:21:16 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-05-26 13:43:03 +0900 |
| commit | 306bd8048149b67af4b359547cd8e69bd58c5d51 (patch) | |
| tree | 9e13f3871c58f892506f35ee623d96378a1775a6 /gnu | |
| parent | c669724138274f8a008d1370d21a56e8b7b68d2e (diff) | |
system: Source scripts from the /etc/profile.d directory.
This is useful since our /etc/profile file is otherwise not easily
extendable.
* gnu/system.scm (operating-system-etc-service): Source all '.sh' ending
files found under the /etc/profile.d directory.
Change-Id: Ia6d777195241f69219f00fbd5975e3e6b7c265fb
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/system.scm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/system.scm b/gnu/system.scm index a4e70f164a4..8c76912d809 100644 --- a/gnu/system.scm +++ b/gnu/system.scm | |||
| @@ -1131,6 +1131,17 @@ export DICPATH=\"$HOME/.guix-profile/share/hunspell:/run/current-system/profile/ | |||
| 1131 | # Allow GStreamer-based applications to find plugins. | 1131 | # Allow GStreamer-based applications to find plugins. |
| 1132 | export GST_PLUGIN_PATH=\"$HOME/.guix-profile/lib/gstreamer-1.0\" | 1132 | export GST_PLUGIN_PATH=\"$HOME/.guix-profile/lib/gstreamer-1.0\" |
| 1133 | 1133 | ||
| 1134 | for i in /etc/profile.d/*.sh; do | ||
| 1135 | if [ -r \"$i\" ]; then | ||
| 1136 | if [ \"${-#*i}\" != \"$-\" ]; then | ||
| 1137 | . \"$i\" | ||
| 1138 | else | ||
| 1139 | . \"$i\" >/dev/null | ||
| 1140 | fi | ||
| 1141 | fi | ||
| 1142 | done | ||
| 1143 | unset i | ||
| 1144 | |||
| 1134 | if [ -n \"$BASH_VERSION\" -a -f /etc/bashrc ] | 1145 | if [ -n \"$BASH_VERSION\" -a -f /etc/bashrc ] |
| 1135 | then | 1146 | then |
| 1136 | # Load Bash-specific initialization code. | 1147 | # Load Bash-specific initialization code. |
