cristianvasquez/obsidian-snippets-plugin

Execute WSL/Linux from Snippet Plugin

herculosh opened this issue · 0 comments

Hi,

First of all, thanks! Great plugin you have put on the legs.

Has anyone managed to integrate WSL into the snippet plugin?

  "sh": {
    "template": "{{src}}",
    "options": {
      "shell": "wsl.exe -d Ubuntu"
    },
    "showModal": true,
    "appendOutputContents": true,
    "showRunButtonInPreview": true
  },

When running the configuration above with the command below I get the error message Spawn wsl.exe -d Ubuntu ENOENT.

```sh
echo "test"
```