|
|
@ -4,9 +4,16 @@ use task.nu
|
|
|
|
|
|
|
|
|
|
|
|
def --env main [] {
|
|
|
|
def --env main [] {
|
|
|
|
if $env.ZELLIJ? == null {
|
|
|
|
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
|
|
|
|
let tmpdir = init
|
|
|
|
zellij --layout {{dirs.config}}/zellij/development.toml --session (session-name)
|
|
|
|
zellij --layout {{dirs.config}}/zellij/development.toml --session (session-name)
|
|
|
|
rm -r $tmpdir
|
|
|
|
rm -r $tmpdir
|
|
|
|
|
|
|
|
if $env.WEZTERM_PANE? != null {
|
|
|
|
|
|
|
|
wezterm cli set-tab-title ""
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
zellij action new-tab --layout {{dirs.config}}/zellij/development.toml --name (tab-name)
|
|
|
|
zellij action new-tab --layout {{dirs.config}}/zellij/development.toml --name (tab-name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|