From: ludo@gnu.org (Ludovic Courtès)
To: David Thompson <dthompson2@worcester.edu>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] environment: Set a default value for PS1.
Date: Mon, 28 Mar 2016 18:39:10 +0200 [thread overview]
Message-ID: <87oa9yr1zl.fsf@gnu.org> (raw)
In-Reply-To: <87io07bdld.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> (David Thompson's message of "Sun, 27 Mar 2016 21:22:54 -0400")
David Thompson <dthompson2@worcester.edu> skribis:
> From 10741ce4e09c5990e70c94f5ed650b3561d042a0 Mon Sep 17 00:00:00 2001
> From: David Thompson <dthompson2@worcester.edu>
> Date: Sun, 27 Mar 2016 21:20:19 -0400
> Subject: [PATCH] environment: Set a default value for PS1.
>
> * guix/scripts/environment.scm (launch-environment/container): Set PS1
> during container initialization.
> ---
> guix/scripts/environment.scm | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
> index fc75d78..6aa5ad0 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" "[ENV] \\u@\\h \\w\\$ ")
Maybe make it '\u@\h \w [env]\$ ' to match what /etc/skel/.bashrc does?
OK to push, thanks!
Ludo’.
next prev parent reply other threads:[~2016-03-28 16:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-28 1:22 [PATCH] environment: Set a default value for PS1 David Thompson
2016-03-28 16:39 ` Ludovic Courtès [this message]
2016-03-30 13:10 ` Thompson, David
2016-03-30 13:28 ` Cyril Roelandt
2016-03-30 13:32 ` Thompson, David
2016-03-30 21:27 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oa9yr1zl.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=dthompson2@worcester.edu \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).