rossmacarthur / sheldon

:bowtie: Fast, configurable, shell plugin manager
https://sheldon.cli.rs
Apache License 2.0
958 stars 21 forks source link

how to install single plugins from ohmyzsh #179

Closed shriharip closed 1 month ago

shriharip commented 2 months ago

Maybe error or issue related to submodule or something which I do not know properly. Would require support here.

I run the command

sheldon add taskwarriorplug --git https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/taskwarrior

and it results in

error: failed to install source https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/taskwarrior due to: failed to git clone https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/taskwarrior due to: unexpected http status code: 404; class=Http (34)

rossmacarthur commented 1 month ago

This doesn't work because the --git option expects a git repo but you are trying to add a link to file inside a repo. You should do this instead:

sheldon add taskwarriorplug --github ohmyzsh/ohmyzsh --dir plugins/taskwarrior
shriharip commented 1 month ago

that helped and solved the issue.