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 fnm exec to run commands with the fnm environment #194

Merged
merged 10 commits into from
Feb 27, 2020
Merged

Conversation

Schniz
Copy link
Owner

@Schniz Schniz commented Feb 24, 2020

Adds fnm exec to run a shell executable with the current node version (or a custom one provided):

fnm exec -- node -v # will print the current Node version in fnm
fnm exec --using 12 -- node -v # will print the version of the latest node 12 installed
fnm exec --using-file -- node -v # will print the version of the current directory's node version (based on `.nvmrc` or `.node-version`)

@Schniz Schniz added the PR: New Feature A new feature was added label Feb 26, 2020
@Schniz Schniz merged commit 50ad22c into master Feb 27, 2020
@Schniz Schniz deleted the add-exec branch February 27, 2020 09:55
Schniz pushed a commit that referenced this pull request Mar 9, 2020
Based on #194 to benefit from the `LocalVersionResolver` module. So I guess this PR should be merged first. This should fix #185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: New Feature A new feature was added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant