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

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

Run termux-fix-shebang against shims #14

Closed pschmitt closed 1 year ago

pschmitt commented 1 year ago

Description

This run termux-fix-shebang if running on termux against both the shims and the underlying binaries (if they are scripts, with a real shebang).

Without this, invoking a shim for a script results in bad interpreter: No such file or directory

Motivation and Context

Related Issue(s)

Usage examples

zinit \
  as"null" \
  sbin"kkp.sh -> kkp" \
  for pschmitt/kkp.sh

How Has This Been Tested?

Types of changes

Checklist:

vladdoster commented 1 year ago

Did you try ferc'kkp.sh -> kkp' instead of sbin?

pschmitt commented 1 year ago

Sure that works too, but I want to fix the sbin ice on termux :)

pschmitt commented 1 year ago

Actually, ferc does not seem to working at all. I don't get a shim with:

zinit delete pschmitt/kkp.sh; zinit as"null" ferc"kkp.sh -> kkp" for pschmitt/kkp.sh; where kkp
# [...]
kkp not found
pschmitt commented 1 year ago

Was running a non-termux zsh build that didn't do the magic exec trick. Closing.