From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OFogFunZDF/oUwAA0tVLHw (envelope-from ) for ; Mon, 13 Jul 2020 22:02:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wOH7EenZDF9EKwAA1q6Kng (envelope-from ) for ; Mon, 13 Jul 2020 22:02:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CB3D39401CF for ; Mon, 13 Jul 2020 22:02:16 +0000 (UTC) Received: from localhost ([::1]:36478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jv6Wd-00033l-O6 for larch@yhetil.org; Mon, 13 Jul 2020 18:02:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jv6W8-0002gr-OT for guix-devel@gnu.org; Mon, 13 Jul 2020 18:01:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46149) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jv6W8-0000YU-88; Mon, 13 Jul 2020 18:01:44 -0400 Received: from 84-52-226.102.3p.ntebredband.no ([84.52.226.102]:50972 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jv6W6-00061n-VA; Mon, 13 Jul 2020 18:01:43 -0400 From: Marius Bakke To: Efraim Flashner , Jesse Gibbons Subject: Re: How to package inputrc In-Reply-To: <20200713183525.GD10256@E5400> References: <8e67dfb8-0e81-5cb0-50fe-202aecdd6854@gmail.com> <20200713183031.GC10256@E5400> <20200713183525.GD10256@E5400> Date: Tue, 14 Jul 2020 00:01:27 +0200 Message-ID: <87v9iraxc8.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: SF7hvR9v5/zh --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Efraim Flashner writes: > On Mon, Jul 13, 2020 at 09:30:31PM +0300, Efraim Flashner wrote: >> On Mon, Jul 13, 2020 at 11:26:59AM -0600, Jesse Gibbons wrote: >> > > In order to achieve this more elegant I could write a simple service= to >> > > copy the file to /etc. Another option would be a small package. >> >=20 >> > I like the service idea a lot better. It appears to me that Guix is de= signed for services to deal with the more customizable parts of the install= ation, whereas packages are standard. /etc/inputrc is one of those things e= ach system admin would want to customize, just like most of the things in /= etc. >>=20 >> I'll go ahead and link to my os-release service here. It's a small >> service that creates an /etc/os-release file. The service in action=C2= =B9 and >> the actual service itself. It would also be possible to create an even >> simpler file than the one I made here=C2=B2, with something like this: >>=20 >> (define %inputrc >> (plain-file "inputrc" >> "set show-mode-in-prompt on\n" >> "set enable-bracketed-paste on\n" >> "set editing-mode vi\n" >> "Control-l: clear-screen\n" >> "set bell-style visible\n")) > > The above wouldn't actually work. It needs a string-append or to not be > multiple strings. Or use 'mixed-text-file' instead of 'plain-file'. Though 'string-join' might be clearer in this case. :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl8M2bcACgkQoqBt8qM6 VPrVZgf+Nvd+2d4K2utqGQtM0cbg6ggh8Ko+QaPoB6Fb92t7G1As2QOG1QR/Jecx ebe7HXk1tWkkUv/Oc/9DoS1sapYSSO780ChAQPyVfSE9qzp4LfRtnNTU5EU2OedV o/iKqJj+JHoLajsaaGDFpbS2SGVDsL4Pd0MePAS/KWmysQOl3lanLWgsKf8Fhc6R FRjAjW6MQJ17/V2ySoETCoq6wl8uQJG4v6d3D0gaXfmfQWLauC5/wLUpvbHBriuF lE+XD3blb0COAK0a4qqwbydd/ZPH/tzMb8iI24lKk+fADdwrvYaq51Clbh5S2+o2 7/6mPfWJq7c+vEGa8h2JLWgwcJHoqw== =iqbQ -----END PGP SIGNATURE----- --=-=-=--