Message ID | 87ilkyed53.fsf@trop.in |
---|---|
State | New |
Headers | show |
Series | [bug#58303] system: Source .profile in skeleton bash_profile. | expand |
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 |
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
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 --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" "\