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
Default preferLocal
to true
when using $
#522
Comments
I agree. |
Great, let's do this then! |
Done at #529. 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default value for
preferLocal
used to betrue
. We changed it tofalse
in #314 because it conflicted with some uncommon setups (#196, #153). IMHOpreferLocal
is still a very helpful option for most users, and it's too bad we cannot enable it by default due to the above.Now, I am wondering whether the default value should be
true
with the new$
methods we just introduced? The reasons for this is:const $$ = $({ preferLocal: false })
$()
is more likely thanexeca()
to be used in a script with many commands to execute. This increases the chance of at least one of them to be a local binary.What do you think @sindresorhus and @aaronccasanova?
The text was updated successfully, but these errors were encountered: