From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: guix environment & PS1 Date: Mon, 29 Jun 2015 10:41:27 +0200 Message-ID: <874mlqrjns.fsf@gnu.org> References: <1435182094-13537-1-git-send-email-tipecaml@gmail.com> <87fv5gj9je.fsf@gnu.org> 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]:45581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9UdC-0002YO-78 for guix-devel@gnu.org; Mon, 29 Jun 2015 04:41:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9Ud8-0005Il-78 for guix-devel@gnu.org; Mon, 29 Jun 2015 04:41:34 -0400 In-Reply-To: ("Claes Wallin \=\?utf-8\?B\?KOmfi+WYieiqoCkiJ3M\=\?\= message of "Thu, 25 Jun 2015 22:00:43 +0200") 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: =?utf-8?B?Q2xhZXMgV2FsbGluICjpn4vlmInoqqAp?= Cc: guix-devel "Claes Wallin (=E9=9F=8B=E5=98=89=E8=AA=A0)" skribis: > On Thu, Jun 25, 2015 at 3:28 PM, Ricardo Wurmus > wrote: >> Thompson, David writes: >>> On Thu, Jun 25, 2015 at 8:02 AM, Ricardo Wurmus >>> wrote: >>>> >>>> Would it be feasible to give "GUIX_ENVIRONMENT" the package name as a >>>> value instead of just "t"? >>> >>> Not really, because 'guix environment' accepts any number of packages. >> >> Oh, right. I forgot about ad-hoc environments and =E2=80=9Cguix environ= ment >> -l=E2=80=9D. >> >> I=E2=80=99m mostly using =E2=80=9Cguix environment=E2=80=9D with a singl= e package name, and for >> that purpose it would be nice if I could make the shell prompt indicate >> for what package this environment was created. I guess =E2=80=9Ct=E2=80= =9D as a value >> for =E2=80=9CGUIX_ENVIRONMENT=E2=80=9D will have to do then. > > As the variable is mostly meant for human-readable display, I think > setting it to "guix guile emacs" if those were the packages given, or > "mypackage.scm" if that was the file given, is strictly an improvement > over "t". What about --ad-hoc? People would start to have expectations about what this variable contains, and it seems difficult to guarantee that we can always give it a meaningful value. Ludo=E2=80=99.