From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] environment: Set a default value for PS1. Date: Mon, 28 Mar 2016 18:39:10 +0200 Message-ID: <87oa9yr1zl.fsf@gnu.org> References: <87io07bdld.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akaCE-0003X2-To for guix-devel@gnu.org; Mon, 28 Mar 2016 12:39:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akaC9-00067X-VU for guix-devel@gnu.org; Mon, 28 Mar 2016 12:39:18 -0400 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") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: David Thompson Cc: guix-devel@gnu.org David Thompson skribis: > From 10741ce4e09c5990e70c94f5ed650b3561d042a0 Mon Sep 17 00:00:00 2001 > From: David Thompson > 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") >=20=20 > + ;; 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=E2=80=99.