From 25b3956b80e0ee76dea27955cd6ba959fcb6e484 Mon Sep 17 00:00:00 2001 From: K <35368006+ktunprasert@users.noreply.github.com> Date: Sun, 30 Mar 2025 05:54:40 +0100 Subject: [PATCH] fix(wsl): wsl should prefer the defined shell instead of powershell.exe (#1766) --- lua/avante/utils/init.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/lua/avante/utils/init.lua b/lua/avante/utils/init.lua index 0b44379..a67c7d5 100644 --- a/lua/avante/utils/init.lua +++ b/lua/avante/utils/init.lua @@ -96,9 +96,6 @@ local function get_cmd_for_shell(input_cmd, shell_cmd) -- powershell then we can just run the cmd if shell:match("powershell") or shell:match("pwsh") then cmd = input_cmd - elseif fn.has("wsl") > 0 then - -- wsl: powershell.exe -Command 'command "/path"' - cmd = "powershell.exe -NoProfile -Command '" .. input_cmd:gsub("'", '"') .. "'" elseif fn.has("win32") > 0 then cmd = 'powershell.exe -NoProfile -Command "' .. input_cmd:gsub('"', "'") .. '"' else