From 09a127e1d558dbb9a8bc97ace0a61927f325f5d1 Mon Sep 17 00:00:00 2001 From: Julius Riegel Date: Wed, 20 Mar 2024 14:49:45 +0100 Subject: [PATCH] Add wezterm integration for ide --- content/local-share/scripts/ide.nu.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/local-share/scripts/ide.nu.tmpl b/content/local-share/scripts/ide.nu.tmpl index ad1124f..86c59f0 100755 --- a/content/local-share/scripts/ide.nu.tmpl +++ b/content/local-share/scripts/ide.nu.tmpl @@ -4,9 +4,16 @@ use task.nu def --env main [] { if $env.ZELLIJ? == null { + if $env.WEZTERM_PANE? != null { + let name = ($env.PWD | path basename) + wezterm cli set-tab-title $"IDE ($name)" + } let tmpdir = init zellij --layout {{dirs.config}}/zellij/development.toml --session (session-name) rm -r $tmpdir + if $env.WEZTERM_PANE? != null { + wezterm cli set-tab-title "" + } } else { zellij action new-tab --layout {{dirs.config}}/zellij/development.toml --name (tab-name) }