Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Using Zplugin to have latest Zsh version installed
- X-seq: zsh-users 23380
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Using Zplugin to have latest Zsh version installed
- Date: Thu, 3 May 2018 06:34:24 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=vk4G0MorWhqrKHWrBdfcGhYN/4cn3d+WxRjFnmyPCdk=; b=soQ/KMzRM4a5UAKE5V/q5tyCPbFDlzi5aAW1s1ueYxnE7Tz8RCH3LTXA7Jqgzasn+x mkm30sz1dqEfpFstGCBhvrnZPnlD8gmu1bJhKoAKfvDMZpM+hagxTThyfhyWaCdas+MZ nR8jgeOl15UdhLlqPxKckgWpuKc86nXZWuBQ2V4AP7VtiLNIyMalU29ixjUBzCTLQH+f swjqJSV82B4NMPCEQRfYQsQxuxZj2LXts45RZ3YdC6g1mLKy8dM4sDxXQ5ri1mBTF6mE A9oESEB5EOQD2kr9WLPDIe82Rxrzeky7lgRwCPZmu5AuLKhiq46A8KAwEVJbG7Pmi9/W nJcQ==
- 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
Hello,
sharing a method of "packaging" zsh HEAD. Zplugin obtains pointer to Github
repo, and "on new commits" hook. So one can issue:
% zplugin ice as"command" pick"src/zsh" atclone"./.preconfig; ./configure"
atpull'%atclone' make"all install"
% zplugin light zsh-users/zsh
This will compile and install latest Zsh. Then, the bit: atpull'%atclone'
says: if there are new commits, repeat installation hook. So, updating with:
% zplugin update zsh-users/zsh
will again compile and install. This can be done by a simple script, but
here there's a dedicated syntax (of "zplugin ice ..."), which feels more
"declare"-like, less "top-down script"-like.
--
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author