Add wezterm integration for ide

main
Julius Riegel 1 month ago
parent dd71a7282c
commit 09a127e1d5

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

Loading…
Cancel
Save