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