From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Profiles/manifests-related command line interface enhancements Date: Thu, 24 Oct 2019 18:42:46 +0200 Message-ID: <20191024184246.014d810e@scratchpost.org> References: <87mudrxvs8.fsf@ambrevar.xyz> <87d0emwm95.fsf@netris.org> <87imoewks8.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Xd9r_B9x_o_I14X2kV=3SNf"; protocol="application/pgp-signature"; micalg=pgp-sha256 Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:32955) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNgCO-0001gC-Kl for guix-devel@gnu.org; Thu, 24 Oct 2019 12:42:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNgCN-0006bx-DR for guix-devel@gnu.org; Thu, 24 Oct 2019 12:42:56 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:55650) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iNgCN-0006ZH-6a for guix-devel@gnu.org; Thu, 24 Oct 2019 12:42:55 -0400 In-Reply-To: <87imoewks8.fsf@ambrevar.xyz> 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: Pierre Neidhardt Cc: guix-devel@gnu.org --Sig_/Xd9r_B9x_o_I14X2kV=3SNf Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Pierre, On Thu, 24 Oct 2019 11:32:55 +0200 Pierre Neidhardt wrote: > As you suggested `guix-activate` could be a shell function that's > defined in /etc/profile or anywhere appropriate. Yes, but what's the advantage of that as opposed to just doing it like anyo= ne else does it: Just start a new shell. For example ssh foo ls starts ls on the remote host at our terminal but ssh foo starts an interactive shell on the remote host at our terminal. Likewise, we could (and do) have=20 guix environment --ad-hoc package1 package2 ls which starts ls in the guix-environment but guix environment --ad-hoc package1 package2 starts interactive shell in the guix-environment. Why should it be different with profiles? I for one *like* it that the shell environment can't be modified by random programs. See Windows for how annoying it would be if it were possible for random programs to change the interactive cmd's environment. >- The inverse command, =3Dguix deactivate /path/to/profile=3D. > This can be useful to deactivate a profile that was activated during logi= n. That is not composable and sounds like a HUGE effort for what would otherwi= se one "exit" command. >- All commands that accept manifests should be able to compose manifests > by passing multiple =3D--manifest FILE=3D options. Hmm that would be nice! --Sig_/Xd9r_B9x_o_I14X2kV=3SNf Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl2x1IYACgkQ5xo1VCww uqX9KQf/Z3eHsQSXISL0xqU1E9SpIaieH8gko+i/7qnpISBl9hGQnm6+FvKeq5Xb C04CyB30vt1BZNZ08c7DV8X36vJ07T8gleo04ahgHxKNsBh2nK/vz19ggTcmEGdP /tHVpA6+DSUzY1mgWk2F8hQ7VKg0WWy9ntOzCGozSnbUoI5lFsV5mOa/PjrBp8cZ 7LduMLnCHRuBhXUBSzRQftK6lu+VIwUMdHpaRh1b/VsFxTfCx1cYc2O6uswwzgDd D8DNMhkGGgsZ3olALRehfoagfAD2lwuRsMHZtzJIqYUwsCGN7HaTMtGM6h/QvxzC Gx/CB5Ppmh7UZbkxXemqkyiUYaUCdQ== =jhWX -----END PGP SIGNATURE----- --Sig_/Xd9r_B9x_o_I14X2kV=3SNf--