zdharma-continuum / zinit-annex-bin-gem-node

Unmaintained mirror of zinit-zsh/z-a-bin-gem-node
Other
7 stars 9 forks source link

Make any binary name given to sbin'' ice be searched via preceding **/… #15

Closed psprint closed 1 year ago

psprint commented 1 year ago

This allows to simply leave the ice empty, to find /$id_as or /$plugin, or specify a binary name without need to give it a **/… glob, because it is boring to do, as someone once noted (didn't find the post).

Second change is a new "1:…" option to limit the number of shims created to only 1. So, e.g.: sbin'1:exa*' to have only first, shortest path exa found be given a shim.

Description

It is boring to add **/… before each binary name, like e.g.: sbin'**/exa'.

Motivation and Context

It allows to simply do sbin'exa' instead of sbin'**/exa'.

Related Issue(s)

Usage examples

zi null sbin'exa' for ogham/exa
# Or even with `sbin''` empty as the plugin name matches the binary:
zi null sbin for ogham/exa

How Has This Been Tested?

Types of changes

Checklist: