fnm
fnm copied to clipboard
Feature: set command (For changing settings)
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
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?
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.