TaKO8Ki / frum

A little bit fast and modern Ruby version manager written in Rust
MIT License
636 stars 15 forks source link

Add support for mksh #115

Open fallwith opened 2 years ago

fallwith commented 2 years ago

frum init produces an error about not being able to infer the shell when ran under mksh.

From looking at frum's source and documentation, the __frumcd shell function and the eval and frum init commands for bash all seem like they will work just fine with mksh. I added mksh alongside bash and sh and rebuilt frum and everything is working well for me.

I do not currently have access to other ksh derivatives to test with, and I am not sure of the current state of ksh derivative support in the "shell" crate. But this simple change has me up and running and enjoying frum.

changelog: Add support for mksh by leveraging the existing bash/sh shell functionality