From a56df4932593e33d30b68e17b547ee2173dedcd8 Mon Sep 17 00:00:00 2001 From: Jah-yee <166608075+Jah-yee@users.noreply.github.com> Date: Wed, 13 May 2026 02:38:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20correct=20alacritty=20executable=20name?= =?UTF-8?q?=20(allacrity=20=E2=86=92=20alacritty)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes DevcontainerConnect terminal detection when using alacritty. The vim.fn.executable() check used 'allacrity' instead of 'alacritty', causing the terminal detection to fall through to the 'no supported terminal emulator found' branch and silently fail. Fixes erichlf/devcontainer-cli.nvim#31 --- lua/devcontainer-cli/devcontainer_utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/devcontainer-cli/devcontainer_utils.lua b/lua/devcontainer-cli/devcontainer_utils.lua index 8528e4b..85696d9 100644 --- a/lua/devcontainer-cli/devcontainer_utils.lua +++ b/lua/devcontainer-cli/devcontainer_utils.lua @@ -235,7 +235,7 @@ function M.create_connect_cmd() elseif vim.fn.executable("wezterm") == 1 then connect_command = { "wezterm cli split-pane --right --cwd . -- bash -c" } dev_command = "\"" .. dev_command .. "\"" - elseif vim.fn.executable("allacrity") == 1 then + elseif vim.fn.executable("alacritty") == 1 then connect_command = { "alacritty --working-directory . --title \"Devcontainer\" -e" } elseif vim.fn.executable("gnome-terminal") == 1 then connect_command = { "gnome-terminal --" }