From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: The future of 'guix environment' Date: Wed, 30 Aug 2017 17:56:34 +0200 Message-ID: <20170830155634.GB2248@jurong> References: <87ziahytsq.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dn5MB-0002H3-Q2 for guix-devel@gnu.org; Wed, 30 Aug 2017 11:56:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dn5M6-00048E-V6 for guix-devel@gnu.org; Wed, 30 Aug 2017 11:56:43 -0400 Received: from mailrelay2-2.pub.mailoutpod1-cph3.one.com ([46.30.212.1]:13776) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dn5M6-00047u-O3 for guix-devel@gnu.org; Wed, 30 Aug 2017 11:56:38 -0400 Content-Disposition: inline In-Reply-To: <87ziahytsq.fsf@member.fsf.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" To: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel Hello, On Wed, Aug 30, 2017 at 11:11:33PM +0800, 宋文武 wrote: > I definitely want this feature too, so how about rename the current > implementation of 'environment' to 'guix shell', whose ad hoc behaviour > is similar to the 'nix-shell', and start a new implementation with this > persistent behaviour? I think we should not have too many commands to Guix, especially not with similar behaviour, since this will make the tool too confusing. How about adding command line options? For instance: 1) Do not cache by default, cache when "--cache" is given. 2) Maybe even better, use "--cache=XXX" to cache under the name or number XXX. 3) Then later, add "--resume" or "--resume=XXX". Or do something similar to "git stash", piling up environments on a stack and popping or dropping them. Andreas