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

fix: detect zsh when zsh isnt run as a login prompt #1395

Merged
merged 1 commit into from Aug 20, 2019

Conversation

forivall
Copy link
Contributor

I don't run zsh as a login prompt, and I haven't chsh'd from bash to zsh, and so yargs was still giving me the bash completion when running it inside of zsh.

Copy link
Member

@mleguen mleguen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must use parenthesis when mixing && and || in the same expression, to respect coding standards.

@bcoe
Copy link
Member

bcoe commented Aug 19, 2019

@forivall thanks for the contribution 👍 I don't use zsh personally, so it's great to have someone kick the tires of the completion logic.

Like @mleguen says, tests are failing because of linting, you might be able to simply run:

./node_modules/.bin/standard --fix

If you don't get around to fixing the linting, I'll work on landing this soon myself.

@forivall
Copy link
Contributor Author

forivall commented Aug 20, 2019 via email

@forivall
Copy link
Contributor Author

the --fix flag with standard didn't auto-fix. So i added the parens manually, and now it passes the standard check.

@bcoe bcoe merged commit 8792d13 into yargs:master Aug 20, 2019
@bcoe
Copy link
Member

bcoe commented Aug 20, 2019

@forivall thank you for the contribution 😄

@bcoe
Copy link
Member

bcoe commented Oct 7, 2019

@forivall this is now released in yargs@14.2.0.

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

Successfully merging this pull request may close these issues.

None yet

3 participants