Schniz / fnm

🚀 Fast and simple Node.js version manager, built in Rust
https://fnm.vercel.app
GNU General Public License v3.0
18.08k stars 459 forks source link

Consider adding command for preparing shell in light of homebrew not allowing instructions in caveats section #337

Open zimme opened 3 years ago

zimme commented 3 years ago

It would be nice if there was a command like fnm env [--prepare-shell=bash|zsh|fish|powershell] that would in the case of fish add a file to ~/.config/fish/conf.d/fnm.fish with fnm evn | source as content.

With this the homebrew installer could do everything needed to install fnm and the instructions to setup fnm properly would be simpler in general.

zimme commented 3 years ago

The command could also be fnm prepare-shell [--shell=bash|zsh|fish|powershell] to align with fnm completions.

Schniz commented 3 years ago

Sounds very good. And it will make the installation script much simpler by relying less on Bash 😄