sublime-text-shell-command icon indicating copy to clipboard operation
sublime-text-shell-command copied to clipboard

Setting shell-file-name does nothing on Windows

Open adrienne opened this issue 6 years ago • 1 comments

I've tried setting shell-file-name to several different things on Windows and nothing has worked. Every command errors out.

Here are several things that haven't worked:

  • "shell-file-name": "bash" (i do have WSL installed, so "bash" is available globally)
  • "shell-file-name": "pwsh"
  • "shell-file-name": "pwsh.exe"
  • "shell-file-name": "powershell"

Any advice?

adrienne avatar Aug 02 '19 03:08 adrienne

sorry for posting on such an old issue but i ran into the same problem and solved it by using an absolute path to the executable. this did the trick for me:

"shell-file-name": "C:/Program Files/PowerShell/7/pwsh.exe"

lclutz avatar Dec 13 '21 13:12 lclutz