From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id a5033638 for ; Sat, 7 Dec 2019 00:37:56 +0000 (UTC) Received: (qmail 10567 invoked by alias); 7 Dec 2019 00:37:47 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24500 Received: (qmail 26285 invoked by uid 1010); 7 Dec 2019 00:37:47 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua1-f49.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25653. spamassassin: 3.4.2. Clear:RC:0(209.85.222.49):SA:0(-2.0/5.0):. Processed in 1.571426 secs); 07 Dec 2019 00:37:47 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.222.49 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ln7EU8PXE6tUUbImshOFBB152K1gtSOv460NT5eCivU=; b=ZpDslT0vJa7v5J6m5YqLQSkNG/9ZEjnQfIEgtw5LhKLqpbxrMXeS5vltwbfTWgiE34 srDY2EMB3LaiM/kj8WWgpEJfBKAWYjQReOOPYaI9Iiip1PP6syeTbawqSm10rLM1MsX1 zOcHzCgoBw02eElFIbpHF6Gvqd4QAVN8TEEH3VMZmaF3FLgjwn8YRuxpar6Rxn52Q/ny 1c+CJ4Nyy+vuSHIK4NozlmWYE3QqRexzEWLRkjda4UqeNjQAwv7vs3Ju/kkd3FFfBBbm 8cyIdvmMT5jRpyJXXrablK5QnO80/DVOH1YUNeJy1UOfCP+soll6wffz+wHwzShlllmA rBEQ== X-Gm-Message-State: APjAAAX67lo83zMuLs5aO1v5pq0qrV15hJ42TGCKJUr4f4RBw5mvU+Oi pvI3GYVOeeUYRmDuyGEXaFuZGaTDJH/Bpq8v3Sq4pz6OpCI= X-Google-Smtp-Source: APXvYqxjXLFlD0ewlUJGTedt49FXxG5MA/D5kssbGlS0QvOr4R81d9uPrvtLRcTaS8x0IV5OZMkPt7UhyM5Zag8bTFs= X-Received: by 2002:ab0:486c:: with SMTP id c41mr14208084uad.28.1575679031430; Fri, 06 Dec 2019 16:37:11 -0800 (PST) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Sat, 7 Dec 2019 01:37:02 +0100 Message-ID: Subject: NPM packages come to Zsh world via Zplugin support To: Zsh Users Content-Type: text/plain; charset="UTF-8" I would like to announce that Zplugin supports NPM-packages that are targetted as a Zsh package, i.e.: if they contain a specific meta-data in the package.json. Why do this? 1. Zplugin is a very flexible plugin manager however users often feel overwhelmed by its configuration. 2. It has many package-manager -like features, such as: it can run Makefiles, automatically provide shims (i.e.: forwarder scripts) for the binaries, extend $PATH to expose the binaries, and more. 3. So a solution came up: why not register a package at the NPM-registry with the plugin-configurations (i.e.: ice-mods) stored in the package.json file? This way, instead of the following command used to install `fzf': zplugin lucid as=program \ pick="$ZPFX/bin/(fzf|fzf-tmux)" \ atclone="cp shell/completion.zsh _fzf_completion; \ cp bin/fzf-tmux $ZPFX/bin" \ make="PREFIX=$ZPFX install" for \ junegunn/fzf you only need: zplugin pack for fzf to get the complete setup of the fuzzy finder, including the completion and the additional script `fzf-tmux'. The installation is real, package-manager -like, because you don't need to invoke Zplugin anymore once installed to use fzf, and you can update the package with `zplugin update fzf', it'll cause the project to refresh and rebuild. There are currently 4 packages available, their home is the Zsh-Packages[1] GitHub organization. I'll be adding the packages intensively over the next days so you can expect it to grow fast. Also, anyone interested in owning a repository in the organization is welcomed, so are requests for a specific package to be included. Also, it would be great if someone graphically skilled would come up with a logo for the organization. 1: https://github.com/zsh-packages -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org