Using cargo install mcfly nicely gives you the binary but to be actually able to use it you still need to checkout the repository somehow to get the shell snippets to be sourced.
Using something like include_str! (or rust-embed so you get compression as well) to store a copy of the shell code and adding a mcfly init $SHELL command to print them (similar to what starship does) would give users everything they need with a single cargo install call.
Using
cargo install mcfly
nicely gives you the binary but to be actually able to use it you still need to checkout the repository somehow to get the shell snippets to be sourced.Using something like
include_str!
(orrust-embed
so you get compression as well) to store a copy of the shell code and adding amcfly init $SHELL
command to print them (similar to what starship does) would give users everything they need with a singlecargo install
call.