Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to enable --use-on-cd in automatic installation script #1262

Open
mrmckeb opened this issue Oct 2, 2024 · 3 comments
Open

Add option to enable --use-on-cd in automatic installation script #1262

mrmckeb opened this issue Oct 2, 2024 · 3 comments

Comments

@mrmckeb
Copy link

mrmckeb commented Oct 2, 2024

Hey @Schniz!

We're recommending fnm as a part of our onboarding docs, and it would be great if there was an option (or flag) to automatically set up fnm with --use-on-cd, as a one-liner.

If you're open to it, I'd be happy to pick this up too.

@Schniz
Copy link
Owner

Schniz commented Oct 2, 2024

I’m considering supporting default arguments in ~/.config/fnm.toml like

[env]
use_on_cd = true

what do you think about this? Then it can be a part of a shared dotfiles or a script!

@Schniz
Copy link
Owner

Schniz commented Oct 2, 2024

We can also make the installation process more configurable or even use use-on-cd by default

@mrmckeb
Copy link
Author

mrmckeb commented Oct 10, 2024

I've given this some more thought. I personally feel that defaulting to --use-on-cd might make sense.

Would you be happy with that approach? I think for many users, that would be preferable - but I could be wrong 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants