From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mekeor Melire Subject: Re: Git-style aliases in Guix? Date: Thu, 09 Mar 2017 04:27:59 +0100 Message-ID: <87tw73dt8g.fsf@gmail.com> References: <1488056366.2392643.892804736.71478AA0@webmail.messagingengine.com> <877f4c1wo1.fsf@gmail.com> <20170227055436.GA5200@jocasta.intra> <87d1e4ave8.fsf@gmail.com> <20170227151517.GA9476@jocasta.intra> <87o9xna257.fsf@gmail.com> <87h934no89.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clokH-0007Kh-8Y for guix-devel@gnu.org; Wed, 08 Mar 2017 22:28:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clokF-0000sc-PE for guix-devel@gnu.org; Wed, 08 Mar 2017 22:28:05 -0500 In-reply-to: <87h934no89.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org 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 = example@example.example [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 writes: > Mekeor Melire 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