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

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

[feat]: Create scripts instead of functions for node/pip #24

Open jankatins opened 1 year ago

jankatins commented 1 year ago

If the feature request is for a plugin or theme, specify it here.

No response

If the feature solves a problem you have, specify it here.

Functions are not available in scripts, meaning I cannot use cli commands installed with node/pip in shell scripts.

Describe the proposed feature.

It would be nice to make the wrapper scripts available as real scripts instead of functions. So basically a 'snode' or 'spip' ice.

Describe alternatives you've considered

One can combine node+ sbin to eseestially create this, but it needs knowledge of the directory structure instead of having that baked in:

functions

zinit id-as"devcontainers-cli" node'devcontainer <- !@devcontainers/cli -> devcontainer'  \
  as"null" for @zdharma-continuum/null

vs this which produces scripts

zinit id-as"devcontainers-cli" node'@devcontainers/cli' sbin'n:node_modules/.bin/devcontainer -> devcontainer;' \
  as"null" for @zdharma-continuum/null

Additional context

No response

Related Issues

No response