GNU bug report logs - #58303
[PATCH] system: Source .profile in skeleton bash_profile.

Previous Next

Package: guix-patches;

Reported by: Andrew Tropin <andrew <at> trop.in>

Date: Wed, 5 Oct 2022 11:15:02 UTC

Severity: normal

Tags: moreinfo, patch

Done: Andrew Tropin <andrew <at> trop.in>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andrew Tropin <andrew <at> trop.in>
To: guix-patches <at> gnu.org
Subject: [PATCH] system: Source .profile in skeleton bash_profile.
Date: Fri, 14 Jan 2022 09:16:49 +0300
[Message part 1 (text/plain, inline)]
* gnu/system/shadow.scm (default-skeletons)[bash_profile]: Source .profile in
skeleton bash_profile.
---
 gnu/system/shadow.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 59f0a02c8b..f30ac79932 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -123,6 +123,9 @@ (define (default-skeletons)
 'useradd' in the home directory of newly created user accounts."
 
   (let ((profile (plain-file "bash_profile" "\
+# Set up Guix Home profile
+if [ -f ~/.profile ]; then . ~/.profile; fi
+
 # Honor per-interactive-shell startup file
 if [ -f ~/.bashrc ]; then . ~/.bashrc; fi\n"))
         (bashrc  (plain-file "bashrc" "\
-- 
2.37.3

[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 106 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.