zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
3.11k stars 129 forks source link

[bug]: cp without source file check #678

Open ethnh opened 4 hours ago

ethnh commented 4 hours ago

What happened?

sorry I understand this is a less than supported OS , but with default settings I am getting error on zinit: cp: cannot stat '/nix/store/p8aykjsfiz14y4cnhjdwim5zz2kxa1p3-zinit-3.13.1/share/zinit/doc/zinit.1': No such file or directory Related to #418

I am going to submit a PR that adds a check for the source file before it cp's just to resolve this error for me. I understand impact is low but I will write it so that no other users are affected negatively. Is it fine? :pray: :bow:

Steps to reproduce

zinit running normally

Relevant output

No response

Screenshots and recordings

No response

Operating System & Version

OS: linux-gnu | Vendor: pc | Machine: x86_64 | CPU: x86_64 | Processor: unknown | Hardware: x86_64

Zsh version

zsh 5.9 (x86_64-pc-linux-gnu)

Terminal emulator

xterm-kitty

If using WSL on Windows, which version of WSL

None

Additional context

No response

Code of Conduct

ethnh commented 3 hours ago

opening fork

ethnh commented 3 hours ago

NixOS