Skip to content

fix: use git bash for shell commands on windows to reduce generator failures #290

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

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

cpendery
Copy link
Member

There is a constraint with the current cd spec from fig. It uses ls -1ApL to generate the folder list, which will fail in pwsh.

This PR addresses the issue by using Git Bash for generators on Windows. On Linux, having /bin/sh as a default will already fix this issue. Users without Git Bash installed will still have issues with cd, but that is an issue at the Fig spec level. I don't want to bring custom specs into inshellisense, so this is the best solution for now.

Closes #12

@cpendery cpendery merged commit e021a9b into main Oct 18, 2024
9 checks passed
@cpendery cpendery mentioned this pull request Oct 24, 2024
@cpendery cpendery deleted the fix/posix-generators branch October 24, 2024 18:43
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.

Powershell: 'cd' does not show proper file suggestions
1 participant