zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.74k stars 122 forks source link

[bug]: curl: (22) The requested URL returned error: 404 #581

Closed SPRATAY closed 9 months ago

SPRATAY commented 9 months ago

What happened?

the same with adb and other plugins, as I understand them e file starting with _

Steps to reproduce

➜ ~ zsh

Setting up snippet: OMZP::ag Downloading OMZP::ag (with curl, wget, lftp)... curl: (22) The requested URL returned error: 404
curl: (22) The requested URL returned error: 404
ERROR: Download failed. omz_termsupport_cwd:3: command not found: omz_urlencode

Relevant output

No response

Screenshots and recordings

No response

Operating System & Version

OS: linux-gnu | Vendor: pc | Machine: x86_64 | CPU: x86_64 | Processor: AMD Ryzen 5 5600H with Radeon Graphics | 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

vladdoster commented 9 months ago

@SPRATAY,

This is not a bug in Zinit, but due to ag plugin on being a completion. The syntax to handle this is covered in the README.md

zi ice as"completion"
zi snippet OMZP::ag/_ag

or

zi as"completion" is-snippet for OMZP::ag/_ag
Screenshot 2023-09-15 at 23 33 00

You can load multiple completions (i.e., ag & adb) with brace expansion.

zi as"completion" is-snippet for OMZP::{adb/_adb,ag/_ag}
Screenshot 2023-09-15 at 23 44 22
SPRATAY commented 9 months ago

Thx bro(slava Ukraine)

svenjacobs commented 6 days ago

Thanks. This helped a lot! 👍🏼