guix-devel
[Top][All Lists]
Advanced

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

Re: Git-style aliases in Guix?


From: Mekeor Melire
Subject: Re: Git-style aliases in Guix?
Date: Thu, 09 Mar 2017 04:27:59 +0100
User-agent: mu4e 0.9.18; emacs 25.1.1

What I really mean to say is, that it'd be a shame, if Guix had a
configuration file like Git which uses this syntax:

    [user]
            name = example
            email = address@hidden
    [alias]
            i = init
            z = stash
            s = status

I mean, all the files Guix reads are written in Scheme (config.scm,
manifest.scm, any package.scm). So, how could it work that Guix was
configured in Scheme?

Is there any way we could make config.scm include a similar data-type as
`operating-system`, maybe called `guix-configuration` or whatever, which
has a field called `aliases`?

I mean, implementing aliases isn't per-se difficult. But I'd love to
have a much broader approach to configure Guix (and Guix' CLI).


Ludovic Courtès <address@hidden> writes:

> Mekeor Melire <address@hidden> skribis:
>
>> So, `operating-system` let's you declare an operating system. What if
>> there was a Scheme function called `guix` or so which allowed you to
>> configure Guix itself?
>>
>> Then, defining Guix aliases could look as follows; maybe saved in a file
>> called guix.scm:
>>
>>       (guix
>>         (aliases '(
>>           ("p" . "package")
>>           ("s" . "package -s")
>>           ("m" . "package -m"))))
>>
>> And similar to `operating-system`, there would be many other
>> configuration fields...
>
> I think that would be pretty cool.
>
> There’ve been discussions in the past about adding aliases:
>
>   https://lists.gnu.org/archive/html/guix-devel/2015-08/msg00325.html
>
> Ludo’.


--
mekeor ~ EDD3 DFFA 76F6 11C0 145F 9A99 AC85 BAD8 A2F8 C868



reply via email to

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