Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ZQL – a language for *declaring* scripts content. Any ideas for changes maybe?
- X-seq: zsh-users 24091
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: ZQL – a language for *declaring* scripts content. Any ideas for changes maybe?
- Date: Tue, 23 Jul 2019 13:50:56 -0700
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YAqZrmoLvVCMvZLt9puNZOWaw+cNjYCYHOwaxdyCPGU=; b=QYCFE46mOdJvq8AQjTgOSh34079RhwC1Uxq3ry6DZazNKl/rBiQWBSP3E6pHkXeTBp WAkCxgcSNDODBs0Wy2Vz0GjUNoDnRiIC88c8+2Pv3RXBLDWKhwDNA1soVkhtgBfH8wJR uOUTd5slN5O6RONa0NdSvABNxKHitltgTqPsQkE8/cmdO9bvoqKNCVMEEvhrAlhCN8+8 JdspKka9l7h7tYLbCkTApO5XIcb17ZF/4ECFMjMuPovbmVN48s6qRbIggDdEs4/G4Zqy x6LbrNkvvUENoVcsYZuZ2VwOUarhWDYO5kz4s1rfF1uuLoXzhRoZcX5VIsKJxLpxS3HH 1hyw==
- In-reply-to: <CAKc7PVAy+R+D7eyAxNWQWKSj_xSLNcOLH34rX4RxazJzdT2v1Q@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVAy+R+D7eyAxNWQWKSj_xSLNcOLH34rX4RxazJzdT2v1Q@mail.gmail.com>
On Mon, Jul 22, 2019 at 9:28 AM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> when I once tried NixOS, a system with declarative configuration at
> its core, i was naively expecting that I'll be able to declare zshrc.
> So, for example, that I'll be able to write some kind of rule "append
> command {X} to the end of the zshrc if it's not somewhere in the
> file".
You should have a look at the "newuser" module and zsh-newuser-install
function, also at Functions/MIME/zsh-mime-setup and
Completion/compinstall ... these all implement something or other of
the sort. The general approach is to mark off sections of the file(s)
with keyworded comments and then restrict the operation of the
"declaration" routines to the corresponding commented sections.
There's probably a lot of recent stuff that could be added to at least
newuser and compinstall.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author