fnm icon indicating copy to clipboard operation
fnm copied to clipboard

Feature: set command (For changing settings)

Open trymeouteh opened this issue 1 year ago • 2 comments

A set command to change settings in fnm.

Here is an example on how to modify the settings in fnm...

$ fnm set use-on-cd enable
$ fnm set version-file-strategy recursive

trymeouteh avatar Jul 23 '24 04:07 trymeouteh

yeah i thought about having a .fnmrc with settings instead of putting it all in fnm env but I don't want to have too much of file system dependencies, and it'll make debugging issues harder for others

maybe you can try doing the following experiment:

echo '--use-on-cd --version-file-strategy=recursive' > ~/.fnmrc # (can contain linebreaks instead of spaces i believe)

and then change your shell profile to have

eval "$(cat ~/.fnmrc | xargs fnm env)"

and tell us if it's worth it?

Schniz avatar Jul 23 '24 06:07 Schniz

Was suggesting this to not have to edit the .bashrc file for a simpler installation on Linux. Having the settings stored in a new file named ~/,fnmrc is not a bad way to keep .bashrc from becoming cluttered.

trymeouteh avatar Jul 23 '24 17:07 trymeouteh