summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorAndrew Tropin <andrew@trop.in>2023-02-08 18:01:59 +0400
committerAndrew Tropin <andrew@trop.in>2023-02-08 18:13:08 +0400
commita4dfbead19a785cb7a25b53798757b39ad10b828 (patch)
treee87ffa59d85450b0f3edec426726c31d205db1da /gnu
parenta545d0adbbba7df2d328c3b7f1d5b327a07c9232 (diff)
downloadguix-a4dfbead19a785cb7a25b53798757b39ad10b828.tar.gz
system: Source .profile in skeleton bash_profile.
Make it consistent with bash_profile generated by Guix Home.

* gnu/system/shadow.scm (default-skeletons)[bash_profile]: Source .profile in
skeleton bash_profile.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/system/shadow.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 2e87928368..445a72e2f5 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -151,6 +151,9 @@ alias grep='grep --color=auto'\n"))
 '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  %default-bashrc)