From 0443c61b687622a780b67725d52b2b1351334108 Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 10 Apr 2026 11:25:49 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20WezTerm-Unterst=C3=BCtzung=20in=20toolb?= =?UTF-8?q?ox=20(open=5Fnew=5Ftab)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/toolbox | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/toolbox b/bin/toolbox index d8949fe..af6b482 100755 --- a/bin/toolbox +++ b/bin/toolbox @@ -669,6 +669,13 @@ def open_new_tab(command: str) -> None: """Öffnet den Befehl in einem neuen Tab im aktuellen Verzeichnis.""" full_cmd = f"cd {shlex.quote(CURRENT_DIR)} && {command}" + # WezTerm (macOS + Linux) + if shutil.which("wezterm") and os.environ.get("TERM_PROGRAM") == "WezTerm": + bash_cmd = f"{full_cmd}; exec bash" + subprocess.Popen(["wezterm", "cli", "spawn", "--cwd", CURRENT_DIR, + "--", "bash", "-c", bash_cmd]) + return + if IS_MAC: import tempfile escaped = full_cmd.replace("\\", "\\\\").replace('"', '\\"')