-
Notifications
You must be signed in to change notification settings - Fork 499
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
Determine fnm's default version programmatically #1196
Comments
fnm list | grep default |
what do you think about using
|
Either of these meet my needs, but I still think it should be baked into a fnm command. Similar tools, like pyenv or rbenv offer this functionality directly. |
So |
If Something like |
@Schniz OK |
@MunifTanjim |
@Schniz you asked me to write a patch, I did so, and it's been sitting for a month. |
I use
fnm default <version>
. I then regularly run a script to check if my default version is out of date. However, I can't find a programmatic way to determine what fmn default is set to. I'm usingfnm current
, but this doesn't always work, if I'm in shell or location that has an overridden version.Expected behavior
fnm default
(without further arguments) should return fnm's current default version.cat
to see fnm's default version.Actual behavior
fnm default
prints help, no file is documented.The text was updated successfully, but these errors were encountered: