From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?Q2xhZXMgV2FsbGluICjpn4vlmInoqqAp?= Subject: Re: guix environment & PS1 Date: Mon, 29 Jun 2015 12:04:59 +0200 Message-ID: References: <1435182094-13537-1-git-send-email-tipecaml@gmail.com> <87fv5gj9je.fsf@gnu.org> <874mlqrjns.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]:49543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9Vw5-0004tl-Qn for guix-devel@gnu.org; Mon, 29 Jun 2015 06:05:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9Vw1-0007XC-Ll for guix-devel@gnu.org; Mon, 29 Jun 2015 06:05:09 -0400 In-Reply-To: <874mlqrjns.fsf@gnu.org> 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?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel On Mon, Jun 29, 2015 at 10:41 AM, Ludovic Court=C3=A8s wrote= : > "Claes Wallin (=E9=9F=8B=E5=98=89=E8=AA=A0)" skribis: >> On Thu, Jun 25, 2015 at 3:28 PM, Ricardo Wurmus >> wrote: >>> I=E2=80=99m mostly using =E2=80=9Cguix environment=E2=80=9D with a sing= le 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. My solution just dumps all the arguments in there, let people parse them however they like. Makes sense to me and people are free to use it or not. I say don't over-problematize the issue. Thanks for mentioning --ad-hoc. The first time I heard about guix environment, I thought that something like that ought to exist. And apparently it does! First rule of innovation: Someone probably already did it.