guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to package inputrc


From: Marius Bakke
Subject: Re: How to package inputrc
Date: Tue, 14 Jul 2020 00:01:27 +0200

Efraim Flashner <efraim@flashner.co.il> 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.
>> > 
>> > I like the service idea a lot better. It appears to me that Guix is 
>> > designed for services to deal with the more customizable parts of the 
>> > installation, whereas packages are standard. /etc/inputrc is one of those 
>> > things each system admin would want to customize, just like most of the 
>> > things in /etc.
>> 
>> 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┬╣ and
>> the actual service itself. It would also be possible to create an even
>> simpler file than the one I made here┬▓, with something like this:
>> 
>> (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.  :-)

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]