matthunz / shmonad

A shell prompt with infinite customization
Apache License 2.0
32 stars 0 forks source link

Add/verify support for other shells #1

Open matthunz opened 3 weeks ago

matthunz commented 3 weeks ago

Currently only ZSH has been tested

benanhalt commented 2 weeks ago

It seems like the first step would be to add an argument to the init subcommand to indicate the shell, right? Do you have a preference of how that is then propagated to the default invocation that generates the prompt? It looks like Starship sets the STARSHIP_SHELL environment variable, but it seems like one could also just include the name of the shell as an argument.

matthunz commented 2 weeks ago

Totally agree with you, and great to know how Starship handles this. I think either an environment variable like that or a CLI argument could work here 🤔