From 738624361eb5ceb754c7e7203fb9c5077fb30218 Mon Sep 17 00:00:00 2001 From: Philipp Wallrafen <74021231+philippwallrafen@users.noreply.github.com> Date: Mon, 5 Oct 2026 00:12:43 +0200 Subject: [PATCH] fix: address iTerm by bundle identifier --- src/terminal.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terminal.sh b/src/terminal.sh index a82b213..3f9495d 100644 --- a/src/terminal.sh +++ b/src/terminal.sh @@ -148,9 +148,9 @@ launch_iterm2() { NVIM_COMMAND="$1" /usr/bin/osascript <<'EOF_AS' set nvimCommand to system attribute "NVIM_COMMAND" set shellCommand to "/bin/zsh -lic " & quoted form of nvimCommand -set wasRunning to application "iTerm2" is running +set wasRunning to application id "com.googlecode.iterm2" is running -tell application "iTerm2" +tell application id "com.googlecode.iterm2" launch if wasRunning then create window with default profile command shellCommand