zsh-users
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: NPM packages come to Zsh world via Zplugin support
Date: Sat, 7 Dec 2019 01:37:02 +0100	[thread overview]
Message-ID: <CAKc7PVADAcCT29x8qhMhOEPw_9MDGutGiWK7vrm30RmYw3DE9g@mail.gmail.com> (raw)

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

                 reply	other threads:[~2019-12-07  0:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKc7PVADAcCT29x8qhMhOEPw_9MDGutGiWK7vrm30RmYw3DE9g@mail.gmail.com \
    --to=sgniazdowski@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).