From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: [PATCH] environment: Set a default value for PS1. Date: Wed, 30 Mar 2016 09:32:54 -0400 Message-ID: References: <87io07bdld.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <56FBD497.1080309@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alGF0-00011S-Mi for guix-devel@gnu.org; Wed, 30 Mar 2016 09:33:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alGEw-0004Uz-SR for guix-devel@gnu.org; Wed, 30 Mar 2016 09:32:58 -0400 Received: from mail-yw0-x22a.google.com ([2607:f8b0:4002:c05::22a]:36765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alGEw-0004Uj-LV for guix-devel@gnu.org; Wed, 30 Mar 2016 09:32:54 -0400 Received: by mail-yw0-x22a.google.com with SMTP id g3so58286195ywa.3 for ; Wed, 30 Mar 2016 06:32:54 -0700 (PDT) In-Reply-To: <56FBD497.1080309@gmail.com> 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: Cyril Roelandt Cc: guix-devel On Wed, Mar 30, 2016 at 9:28 AM, Cyril Roelandt wrote: > On 03/28/2016 03:22 AM, David Thompson wrote: >> + ;; Set a reasonable default PS1. >> + (setenv "PS1" "[ENV] \\u@\\h \\w\\$ ") >> + > Would it be an acceptable feature to let the user ask for their own PS1? > I very often have to make sure my code works on both Python 2.7 and > Python 3.4, and it would be very helpful to have environments named > "(py27)" and "(py34)" instead of just "[ENV]". I should have made the commit message better. This change only applies to containers. If you want to set your own PS1 there, source a script in the container. - Dave