cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.75k stars 176 forks source link

Embed shell snippets to make `cargo install` self-contained #111

Open em- opened 3 years ago

em- commented 3 years ago

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.

cantino commented 3 years ago

Great idea @em-!