guix-devel
[Top][All Lists]
Advanced

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

Re: How to package inputrc


From: Efraim Flashner
Subject: Re: How to package inputrc
Date: Mon, 13 Jul 2020 21:30:31 +0300

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"))

¹ https://gitlab.com/Efraim/guix-config/-/blob/master/E5400_config.scm#L68
² https://gitlab.com/Efraim/guix-config/-/blob/master/config/os-release.scm

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Attachment: signature.asc
Description: PGP signature


reply via email to

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