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

Pin default shell to cmd.exe on windows #71

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ysl2
Copy link

@ysl2 ysl2 commented Jan 16, 2023

I have set my default shell to powershell 7 (let &shell='pwsh'), but the command in function s:SaveFileTMPWin32 is cmd.exe format.
So I realized we should backup the original shell first (defined by &shell and &shellcmdflag, run :h system for more information), then run the "powershell paste image" command, finally we should recover the original shell. If we don't change the &shell to cmd.exe, it will return 1 indicates the command failed.

@ysl2 ysl2 changed the title Pin default shell to cmd.exe on windows. Fix path seprator for windows. Pin default shell to cmd.exe on windows Jan 16, 2023
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.

1 participant