Skip to content

Conversation

@braheezy
Copy link

Fixes #229, partially? I didn't look at Command Prompt.

Changes Introduced

  • Allows ctrl+e to execute PowerShell code blocks
    • This required closing the temporary file immediately instead of deferring because slides blocks Windows from accessing the file
  • Test changes to support make test on different OS platforms

},
Powershell: {
Extension: "ps1",
Commands: cmds{{"powershell", "-File", "<file>"}},

Choose a reason for hiding this comment

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

Suggested change
Commands: cmds{{"powershell", "-File", "<file>"}},
Commands: cmds{{"powershell", "-NoLogo", "-NoProfile", "-File", "<file>"}},

You probably want to add NoLogoand NoProfile to make things faster and safer. I would also recommend using pwsh since that would work cross platform. I suspect the type of user who wants this tool would be using Pwsh.

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.

Support Windows CMD or PowerShell for code execution

2 participants