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) }