rkiggen / ob-powershell

Emacs Babel Powershell implementation
MIT License
13 stars 6 forks source link

Powershell not recognized #9

Open gamephreak13 opened 1 month ago

gamephreak13 commented 1 month ago

Hello, I'm pretty new to emacs so bare with any lack of knowledge while I learn. I'm currently trying to get Org-Babel for powershell source blocks and am using this plugin.

Problem

When executing a src block I receive an error stating:

/run/current-system/sw/bin/bash: line 1: powershell: command not found
[ Babel evaluation exited with code 127 ]

image

Despite having powershell installed and running:

image

Idea

This seems to happen due to an update with powershell. Powershell is the old executed command but now that they've updated it's pwsh.

Question

Is there any way to change the executed command from powershell to pwsh? I spent a bit of time trying to find any settings that I could use to override this but I wasn't able to find anything.

macownersclub commented 1 day ago

Upvote PR #10. Should fix this. 😉