aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2016-03-27 21:20:19 -0400
committerDavid Thompson <dthompson2@worcester.edu>2016-03-30 09:09:40 -0400
commitaa2a0d4bb8e60321a814860f08eebfcf78dfde8f (patch)
tree3b6e05d2235484f008673d3d687eaeb4c4feb67f
parent8caf80fcf43b118c41d8546c15ade35cf3f9b854 (diff)
downloadguix-aa2a0d4bb8e60321a814860f08eebfcf78dfde8f.tar
guix-aa2a0d4bb8e60321a814860f08eebfcf78dfde8f.tar.gz
environment: Set a default value for PS1.
* guix/scripts/environment.scm (launch-environment/container): Set PS1 during container initialization.
-rw-r--r--guix/scripts/environment.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index fc75d78611..0ec2c5d3cb 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -425,6 +425,9 @@ host file systems to mount inside the container."
(mkdir-p "/bin")
(symlink bash "/bin/sh")
+ ;; Set a reasonable default PS1.
+ (setenv "PS1" "\\u@\\h \\w [env]\\$ ")
+
;; Setup directory for temporary files.
(mkdir-p "/tmp")
(for-each (lambda (var)