diff mbox series

[bug#58303] system: Source .profile in skeleton bash_profile.

Message ID 87ilkyed53.fsf@trop.in
State New
Headers show
Series [bug#58303] system: Source .profile in skeleton bash_profile. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success
cbaines/issue success View issue
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Andrew Tropin Jan. 14, 2022, 6:16 a.m. UTC
* gnu/system/shadow.scm (default-skeletons)[bash_profile]: Source .profile in
skeleton bash_profile.
---
 gnu/system/shadow.scm | 3 +++
 1 file changed, 3 insertions(+)

Comments

Christopher Baines Nov. 3, 2022, 3:49 p.m. UTC | #1
Andrew Tropin <andrew@trop.in> writes:

> [[PGP Signed Part:Undecided]]
>
> * gnu/system/shadow.scm (default-skeletons)[bash_profile]: Source .profile in
> skeleton bash_profile.
> ---
>  gnu/system/shadow.scm | 3 +++
>  1 file changed, 3 insertions(+)

Hey!

This issue has been open for a while, is the patch still relevant?

It seems OK to me, but then I don't know much about this shell stuff or
guix home.

Chris
Andrew Tropin Nov. 28, 2022, 6:02 a.m. UTC | #2
On 2022-11-03 16:49, Christopher Baines wrote:

> Andrew Tropin <andrew@trop.in> writes:
>
>> [[PGP Signed Part:Undecided]]
>>
>> * gnu/system/shadow.scm (default-skeletons)[bash_profile]: Source .profile in
>> skeleton bash_profile.
>> ---
>>  gnu/system/shadow.scm | 3 +++
>>  1 file changed, 3 insertions(+)
>
> Hey!
>
> This issue has been open for a while, is the patch still relevant?
>
> It seems OK to me, but then I don't know much about this shell stuff or
> guix home.
>
> Chris

Yep, still relevant.
diff mbox series

Patch

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" "\